/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary-color: #f8fafc;
  --accent-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --sidebar-width: 280px;
  --transition-speed: 0.3s;
}

[data-theme="dark"] {
  --primary-color: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary-color: #1e293b;
  --accent-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0 0.5rem;
  justify-content: space-around;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem; /* Réduit légèrement */
  padding: 0.4rem 0; /* Réduit le padding */
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  margin: 0 2px;
}

.bottom-nav-item i {
  font-size: 1.125rem; /* Réduit de 1.25rem */
  margin-bottom: 0.2rem; /* Réduit l'espacement */
}

.bottom-nav-item.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

.bottom-nav-item:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.05);
}

/* More Menu */
.more-menu {
  display: none;
  position: fixed;
  bottom: 64px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
  transition: transform 0.3s ease;
  transform: translateY(100%);
}

.more-menu.active {
  transform: translateY(0);
  display: block;
}

.more-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.close-more-menu {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-menu-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.more-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.more-menu-item i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.more-menu-item:hover {
  background: var(--secondary-color);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, border-color
    var(--transition-speed) ease;
}

.logo {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition-speed) ease;
}

.logo i {
  font-size: 2rem;
}






.sidebar-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  transition: border-color var(--transition-speed) ease;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-speed) ease;
}

/* Header */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.search-bar {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle,
.notification-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover,
.notification-btn:hover {
  background: var(--secondary-color);
  color: var(--text-primary);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger-color);
  color: white;
  font-size: 0.75rem;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.user-name {
  font-weight: 500;
  color: var(--text-primary);
}

/* Page Layout */
.page-content {
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.page-title h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-title p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.page-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* Buttons */
.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  background: none;
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-icon.danger:hover {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

/* Dashboard */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.welcome-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.welcome-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-weight: 300;
}

.welcome-section .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-icon.patients {
  background: var(--primary-color);
}
.stat-icon.sessions {
  background: var(--accent-color);
}
.stat-icon.appointments {
  background: var(--warning-color);
}
.stat-icon.revenue {
  background: var(--danger-color);
}

.stat-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.view-all {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.view-all:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Appointments List */
.appointments-list {
  padding: 1rem;
}

.appointment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: background 0.2s ease;
  margin-bottom: 0.5rem;
}

.appointment-item:hover {
  background: var(--secondary-color);
}

.appointment-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.appointment-time .time {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.appointment-time .duration {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.appointment-details {
  flex: 1;
}

.appointment-details h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.appointment-details p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.appointment-actions {
  display: flex;
  gap: 0.5rem;
}

/* Plans List */
.plans-list {
  padding: 1rem;
}

.plan-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  transition: background 0.2s ease;
  margin-bottom: 0.5rem;
}

.plan-item:hover {
  background: var(--secondary-color);
}

.plan-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.plan-details {
  flex: 1;
}

.plan-details h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.plan-details p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions {
  margin-bottom: 2rem;
}

.quick-actions h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.action-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-family: inherit;
}

.action-btn:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.action-btn i {
  font-size: 2rem;
  color: var(--primary-color);
}

.action-btn span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Filters */
.filters-section {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  border: 1px solid var(--border-color);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Clients Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.client-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.client-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.client-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.status-actif {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.status-inactif {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.status-archive {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}

.client-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.client-info p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.client-info i {
  width: 16px;
  color: var(--primary-color);
}

.client-stats {
  display: flex;
  justify-content: space-between;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.client-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* Social Profile Styles */
.social-profile-header {
  position: relative;
  margin-bottom: 2rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  position: relative;
}

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0.1));
}

.profile-cover .btn-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  backdrop-filter: blur(10px);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.profile-cover .btn-back:hover {
  background: rgba(255, 255, 255, 0.3);
}

.profile-info-header {
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  background: var(--bg-primary);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.5rem;
  border: 4px solid var(--bg-primary);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.profile-main-info {
  flex: 1;
  margin-top: 60px;
}

.profile-main-info h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.profile-stats-inline {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.profile-stats-inline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.profile-stats-inline i {
  color: var(--primary-color);
}

.profile-actions {
  display: flex;
  gap: 1rem;
  margin-top: 60px;
}

.social-profile-content {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 2rem;
}

.profile-sidebar,
.profile-right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
}

.profile-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card h3 i {
  color: var(--primary-color);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.info-value {
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-stat {
  text-align: center;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.quick-stat .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.quick-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

.notes-content {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
}

.activity-icon.sessions {
  background: var(--accent-color);
}
.activity-icon.plans {
  background: var(--primary-color);
}
.activity-icon.invoices {
  background: var(--warning-color);
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-tabs {
  display: flex;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 0.5rem;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.social-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.social-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.social-tab.active {
  background: var(--primary-color);
  color: white;
}

.social-tab-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  min-height: 500px;
  padding: 1.5rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 3px solid var(--bg-primary);
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sessions List Container */
.sessions-list-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.sessions-table-container {
  overflow-x: auto;
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
}

.sessions-table th,
.sessions-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.sessions-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sessions-table td {
  color: var(--text-secondary);
  vertical-align: middle;
}

.sessions-table tbody tr:hover {
  background: var(--bg-secondary);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-draft {
  background: rgba(107, 114, 128, 0.1);
  color: var(--text-secondary);
}
.status-sent {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}
.status-paid {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}
.status-overdue {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}
.status-scheduled {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}
.status-in-progress {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}
.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}
.status-cancelled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

/* Invoices Table */
.invoices-table-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.invoices-table {
  width: 100%;
  border-collapse: collapse;
}

.invoices-table th,
.invoices-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.invoices-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.invoices-table td {
  color: var(--text-secondary);
}

.invoices-table tbody tr:hover {
  background: var(--bg-secondary);
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.plan-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.plan-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.plan-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.modal-form {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* AI Chat */
.ai-chat-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.ai-chat-toggle:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.ai-chat-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateY(100%) scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.ai-chat-container.active {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ai-chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.ai-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-info {
  flex: 1;
}

.ai-info h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ai-status {
  font-size: 0.75rem;
  opacity: 0.8;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ai-message.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ai-message .message-avatar {
  background: var(--primary-color);
  color: white;
}

.ai-message.user-message .message-avatar {
  background: var(--accent-color);
  color: white;
}

.message-content {
  flex: 1;
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  max-width: 80%;
}

.ai-message.user-message .message-content {
  background: var(--primary-color);
  color: white;
}

.message-content p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.ai-chat-input {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.75rem;
}

.ai-chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
}

.ai-chat-input input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.ai-chat-input button {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.ai-chat-input button:hover {
  background: var(--primary-dark);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pagination-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-info {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Session-specific styles */
.session-body {
  background: var(--bg-secondary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Session Header */
.session-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem; /* Réduit le padding */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  min-height: 70px; /* Hauteur fixe plus petite */
}

.session-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.session-info h2 {
  font-size: 1.25rem; /* Réduit de 1.5rem */
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem; /* Réduit l'espacement */
}

.session-meta {
  display: flex;
  gap: 1.5rem; /* Réduit l'espacement */
  color: var(--text-secondary);
  font-size: 0.8rem; /* Légèrement plus petit */
}

.session-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.session-meta i {
  color: var(--primary-color);
}

.session-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.session-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.5rem 0.75rem; /* Réduit le padding */
  border-radius: var(--border-radius);
  font-weight: 600;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.session-control-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px; /* Réduit de 44px */
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.875rem; /* Réduit la taille de l'icône */
}

.session-control-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.session-control-btn.paused {
  background: var(--accent-color);
  animation: pulse 2s infinite;
}

/* Session Main */
.session-main {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Patient Info Card */
.patient-info-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.patient-avatar {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.patient-details {
  flex: 1;
}

.patient-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.patient-details p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.patient-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.patient-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.patient-stats i {
  color: var(--primary-color);
}

/* Session Tools Grid */
.session-tools-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.session-tool-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.tool-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-header i {
  color: var(--primary-color);
}

.tool-actions {
  display: flex;
  gap: 0.5rem;
}

/* Notes Card */
.notes-card {
  grid-row: span 2;
}

.session-textarea {
  flex: 1;
  min-height: 300px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: none;
  margin-bottom: 1rem;
}

.session-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.quick-templates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.template-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: inherit;
}

.template-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.template-btn i {
  color: var(--primary-color);
}

.template-btn:hover i {
  color: white;
}

/* Objectives Card */
.objectives-list {
  margin-bottom: 2rem;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.objective-item:hover {
  background: var(--secondary-color);
}

.objective-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.objective-item label {
  flex: 1;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
}

.session-progress {
  margin-top: auto;
}

.progress-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Quick Actions Card */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
}

.action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.action-btn:hover i {
  color: white;
}

.action-btn span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* History Card */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.history-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.history-content p {
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

/* Session Actions */
.session-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
}

/* Video Conference Styles */
.video-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.video-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.video-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.video-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.video-btn.muted {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.video-btn.secondary {
  background: var(--bg-primary);
}

.video-card {
  grid-column: span 2;
}

.video-container {
  position: relative;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.video-main {
  width: 100%;
  height: 100%;
  position: relative;
}

.video-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.video-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.video-placeholder p {
  font-size: 1rem;
  opacity: 0.8;
}

.video-local {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 200px;
  height: 150px;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.video-local video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-controls-overlay {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-local:hover .video-controls-overlay {
  opacity: 1;
}

.control-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.control-btn.muted {
  background: var(--danger-color);
}

.video-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Modal Enhancements */
.patient-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.info-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.notes-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.notes-section p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Completion Modal */
.completion-summary {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.summary-item:last-child {
  margin-bottom: 0;
}

.summary-item i {
  color: var(--primary-color);
  width: 20px;
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.rating-stars i {
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
  color: #f59e0b;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Animation pour le bouton pause */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding-top: 56px; /* Ajusté pour la nouvelle hauteur */
    padding-bottom: 56px;
  }

  .header {
    padding: 1rem;
  }

  .page-content {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .social-profile-content {
    grid-template-columns: 1fr;
  }

  .profile-sidebar,
  .profile-right-sidebar {
    order: 2;
  }

  .profile-main {
    order: 1;
  }

  .filters-section {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    min-width: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ai-chat-container {
    width: calc(100vw - 2rem);
    height: calc(100vh - 4rem);
    bottom: 1rem;
    right: 1rem;
  }

  .user-name {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  /* Session responsive styles */
  .session-header {
    padding: 0.5rem 1rem; /* Réduit encore plus sur mobile */
    min-height: 60px;
  }

  .session-header-left {
    width: 100%;
  }

  .session-header-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .session-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .session-main {
    padding: 1rem;
  }

  .session-tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .notes-card {
    grid-row: auto;
    order: 1;
  }

  .objectives-card {
    order: 2;
  }

  .actions-card {
    order: 3;
  }

  .history-card {
    order: 4;
  }

  .session-textarea {
    min-height: 200px;
  }

  .quick-templates {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .patient-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .session-actions {
    flex-direction: column;
    padding: 1rem 0;
  }

  .patient-info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .patient-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-info-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -40px;
  }

  .profile-main-info {
    margin-top: 20px;
  }

  .profile-actions {
    margin-top: 20px;
    width: 100%;
  }

  .social-tabs {
    flex-wrap: wrap;
  }

  .social-tab {
    flex: 1;
    min-width: calc(50% - 0.25rem);
  }

  /* Session mobile styles */
  .session-header {
    padding: 0.75rem;
  }

  .session-info h2 {
    font-size: 1.25rem;
  }

  .session-timer {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .session-control-btn {
    width: 40px;
    height: 40px;
  }

  .session-tool-card {
    padding: 1rem;
  }

  .tool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .patient-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Client Session Styles */
.client-session-body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Client Session Header */
.client-session-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.session-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.session-welcome h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.session-welcome p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.875rem;
}

.status-indicator i {
  animation: pulse 2s infinite;
}

.session-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: var(--primary-color);
  font-weight: 600;
}

.session-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.control-btn {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.control-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.control-btn.active {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.control-btn.muted {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.control-btn.secondary {
  background: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.control-btn.danger {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

/* Client Session Main */
.client-session-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  padding: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Video Conference Area */
.video-conference-area {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.main-video-container {
  position: relative;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.therapist-video {
  width: 100%;
  height: 100%;
  position: relative;
}

.therapist-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-video {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 200px;
  height: 150px;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.client-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.client-video .video-overlay {
  padding: 0.5rem;
}

.participant-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.participant-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.participant-avatar.client {
  background: var(--accent-color);
}

.participant-name {
  font-weight: 500;
  font-size: 0.875rem;
}

.video-controls {
  display: flex;
  gap: 0.5rem;
}

.mini-control {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.mini-control:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.mini-control.muted {
  background: var(--danger-color);
}

/* Session Tools Panel */
.session-tools-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.tool-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.tool-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-header i {
  color: var(--primary-color);
}

.save-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.save-btn:hover {
  background: #059669;
  transform: scale(1.05);
}

/* Mood Selector */
.mood-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.mood-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-family: inherit;
}

.mood-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.mood-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.mood-btn i {
  font-size: 1.5rem;
}

.mood-btn span {
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

/* Personal Notes */
.notes-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
}

.notes-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Breathing Exercise */
.breathing-exercise {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.2));
}

.breathing-circle.breathing-active {
  border-color: var(--accent-color);
}

.breathing-circle.inhale {
  transform: scale(1.2);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.3));
}

.breathing-circle.exhale {
  transform: scale(0.8);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.2));
}

.breathing-text {
  text-align: center;
}

.breathing-text span {
  font-weight: 600;
  color: var(--text-primary);
}

.breathing-text small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.breathing-controls {
  display: flex;
  gap: 1rem;
}

/* Session Objectives */
.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.objective-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.objective-item:hover {
  background: var(--secondary-color);
}

.objective-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.objective-content {
  flex: 1;
}

.objective-content h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.objective-content p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.objective-status {
  color: var(--accent-color);
  font-size: 1.25rem;
}

.objective-status .fa-clock {
  color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
}

.action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.action-btn i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.action-btn:hover i {
  color: white;
}

.action-btn span {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Session End Modal */
.session-summary {
  text-align: center;
  margin-bottom: 2rem;
}

.summary-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.session-summary h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.session-summary p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.session-feedback {
  margin-bottom: 2rem;
  text-align: center;
}

.session-feedback h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feedback-stars {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.feedback-stars i {
  font-size: 1.5rem;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease;
}

.feedback-stars i:hover,
.feedback-stars i.active {
  color: #f59e0b;
}

.homework-section {
  margin-bottom: 2rem;
}

.homework-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.homework-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.homework-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
}

.homework-item i {
  color: var(--primary-color);
  width: 20px;
}

.next-session {
  margin-bottom: 2rem;
}

.next-session h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.next-session-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-weight: 500;
}

.next-session-info i {
  color: var(--primary-color);
}

/* Responsive Design for Client Session */
@media (max-width: 768px) {
  .client-session-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .session-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .session-status {
    justify-content: center;
  }

  .session-controls {
    justify-content: center;
    flex-wrap: wrap;
  }

  .client-session-main {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .client-video {
    width: 120px;
    height: 90px;
    bottom: 0.5rem;
    right: 0.5rem;
  }

  .mood-selector {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .breathing-circle {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .control-btn {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .mood-selector {
    grid-template-columns: repeat(2, 1fr);
  }

  .mood-btn {
    padding: 0.75rem 0.5rem;
  }

  .mood-btn i {
    font-size: 1.25rem;
  }

  .breathing-circle {
    width: 80px;
    height: 80px;
  }
}

/* Ajouter les styles pour les nouvelles pages */

/* Forms Navigation */
.forms-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
}

.form-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-nav-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.form-nav-btn i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.form-nav-btn:hover i,
.form-nav-btn.active i {
  color: white;
}

.form-nav-btn span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Forms Container */
.forms-container {
  position: relative;
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.form-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 2rem;
  text-align: center;
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-header p {
  opacity: 0.9;
  font-weight: 300;
}

.form-content {
  padding: 2rem;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.2s ease;
}

.checkbox-item:hover {
  background: var(--bg-secondary);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

/* Invoice Items */
.invoice-items {
  margin-bottom: 1rem;
}

.invoice-item {
  margin-bottom: 1rem;
}

.item-row {
  display: grid;
  grid-template-columns: 2fr 80px 120px 100px 40px;
  gap: 1rem;
  align-items: center;
}

.item-description,
.item-quantity,
.item-price {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
}

.item-total {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.btn-remove-item {
  background: var(--danger-color);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove-item:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.btn-add-item {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-add-item:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Invoice Summary */
.invoice-summary {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.125rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  color: var(--primary-color);
}

.summary-amount {
  font-weight: 600;
}

/* Objectives List */
.objectives-list {
  margin-bottom: 1rem;
}

.objective-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.objective-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-remove-objective {
  background: var(--danger-color);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-remove-objective:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.btn-add-objective {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-add-objective:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Lists Navigation */
.lists-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.list-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  font-family: inherit;
}

.list-nav-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.list-nav-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.list-nav-btn i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.list-nav-btn:hover i,
.list-nav-btn.active i {
  color: white;
}

.list-nav-btn span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Lists Container */
.lists-container {
  position: relative;
}

.list-section {
  display: none;
}

.list-section.active {
  display: block;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.list-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.list-header i {
  color: var(--primary-color);
}

.list-actions {
  display: flex;
  gap: 1rem;
}

/* Data Table */
.table-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

/* Progress Bar in Table */
.data-table .progress-bar {
  width: 100px;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.data-table .progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.data-table .progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Status badges for lists */
.status-confirme {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.status-planifie {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
}

.status-en-attente {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.3s ease;
}

.notification.success {
  border-color: var(--accent-color);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.notification.error {
  border-color: var(--danger-color);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Session Logo */
.session-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.session-logo i {
  font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .forms-navigation,
  .lists-navigation {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .list-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .item-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .forms-navigation,
  .lists-navigation {
    grid-template-columns: 1fr;
  }

  .form-content {
    padding: 1rem;
  }

  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
}

/* Supprimer la navigation mobile en haut et garder seulement celle du bas */

/* 1. Supprimer complètement la section "Mobile Navigation" (.mobile-nav) */

/* 2. Modifier la section "Mobile Bottom Navigation" pour qu'elle soit toujours visible sur mobile : */

.mobile-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0 0.5rem;
  justify-content: space-around;
  transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* 3. Dans la section responsive, modifier : */

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding-bottom: 64px;
    padding-top: 0;
  }
}

/* 4. Supprimer toutes les références à .mobile-nav dans le CSS responsive */
