/* ==================================================== */
/* VUE PROFIL & MON COMPTE (conteneur + archives)       */
/* Whisp It - Design Epure, Moderne & Accessible        */
/* ==================================================== */

.profile-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 4px 4px max(80px, calc(env(safe-area-inset-bottom, 0px) * 0.45 + 72px)) 4px;
  box-sizing: border-box;
}

/* Carte d identite, preferences et reglages : voir profile-account.css */

/* ==================================================== */
/* 5. OVERLAY PLEIN ÉCRAN DES ARCHIVES                  */
/* ==================================================== */
.archives-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-app);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)) 16px;
  gap: 16px;
  box-sizing: border-box;
  animation: slideUpFade 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.archives-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.archives-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-from-archives {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-back-from-archives:hover {
  background-color: var(--bg-hover);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.archives-header-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archives-view-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.archives-view-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
}

.btn-empty-archives {
  font-size: 11.5px;
  font-weight: 700;
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-empty-archives:hover {
  background-color: #ef4444;
  color: #ffffff;
}

.archives-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex: 1;
}

.archived-meeting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: var(--bg-card);
  border-radius: 18px;
  padding: 12px 14px;
  box-sizing: border-box;
  transition: background-color 0.15s ease;
}

.archived-meeting-item:hover {
  background-color: var(--bg-hover);
}

.archived-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.archived-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.archived-item-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.archived-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-restore-archive {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

body.dark-mode .btn-restore-archive {
  background-color: #272730;
  color: #38bdf8;
}

.btn-restore-archive:hover {
  transform: scale(1.05);
}

.btn-delete-archive-perm {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-delete-archive-perm:hover {
  background-color: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}
