/* Admin Panel Styles */
:root {
  --primary-color: #4361ee;
  --primary-light: #eaefff;
  --primary-dark: #3a56d4;
  --secondary-color: #2b2d42;
  --accent-color: #48cae4;
  --success-color: #06d6a0;
  --warning-color: #ffd166;
  --danger-color: #ef476f;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.3s ease;
}

body {
  /* background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important; */
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a{
  text-decoration: none !important;
}

.cke_notification_warning {
  display: none !important;
}

.bg-gradient-primary {
  background: linear-gradient(90deg, #2196f3 60%, #e3f2fd 100%) !important;
}

.navbar {
  box-shadow: 0 2px 8px rgba(33,150,243,0.08);
  background: #fff !important;
}

.navbar-brand {
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: #2196f3 !important;
}

.nav-link {
  color: #1976d2 !important;
  font-weight: 500;
  margin-left: 10px;
  margin-right: 10px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.nav-link.active, .nav-link:hover {
  background: #e3f2fd;
  color: #0d47a1 !important;
}

.main-content {
  min-height: 80vh;
}

.hero {
  background: linear-gradient(90deg, #2196f3 60%, #e3f2fd 100%);
  color: #fff;
  padding: 60px 0 40px 0;
  text-align: center;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px 0 rgba(33,150,243,0.13);
}

.section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(33,150,243,0.05);
  padding: 32px 28px;
  margin-bottom: 32px;
}

.footer {
  background: #2196f3;
  color: #fff;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  box-shadow: 0 -2px 12px rgba(33,150,243,0.07);
  display: block !important;
  width: 100%;
  bottom: 0;
  margin-top: 2rem;
  flex-shrink: 0;
}

.card, .dashboard-box {
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(33,150,243,0.07);
  border: none;
  background: #fff;
}

.dashboard-box {
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-box:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(33,150,243,0.13);
}

.btn-primary, .btn-outline-primary {
  border-radius: 30px;
  padding-left: 24px;
  padding-right: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

input, textarea, select {
  border-radius: 8px !important;
}

.table {
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    padding: 30px 0 20px 0;
    font-size: 1.1rem;
  }
  .navbar-brand {
    font-size: 1.1rem;
  }
  .section {
    padding: 18px 8px;
  }

  .navbar-collapse {
    padding: 30px 0px !important;
  }

  .navbar-collapse .navbar-nav .nav-item {
    padding: 5px 0px !important;
  }

  .navbar-collapse .navbar-nav .nav-item .nav-link {
    padding-left: 15px !important;
  }

  .profile-dropdown {
    margin-left: 15px !important;
    margin-top: 12px !important;
  }
}

/* Sidebar Styles */
#adminSidebar,
#psychologistSidebar,
#directorSidebar {
  background: var(--secondary-color) !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  width: 280px !important;
  transition: var(--transition);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

#adminSidebar .sidebar-header,
#psychologistSidebar .sidebar-header,
#directorSidebar .sidebar-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1rem;
}

#adminSidebar .sidebar-header span,
#psychologistSidebar .sidebar-header span,
#directorSidebar .sidebar-header span {
  color: white !important;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

#adminSidebar .nav-link,
#psychologistSidebar .nav-link,
#directorSidebar .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: var(--border-radius);
  padding: 0.8rem 1rem;
  margin: 0.3rem 0;
  transition: var(--transition);
  font-weight: 400;
  display: flex;
  align-items: center;
}

#adminSidebar .nav-link:hover,
#psychologistSidebar .nav-link:hover,
#directorSidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important;
}

#adminSidebar .nav-link.active,
#psychologistSidebar .nav-link.active,
#directorSidebar .nav-link.active {
  background: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#adminSidebar .nav-link i, 
#adminSidebar .nav-link svg,
#psychologistSidebar .nav-link i,
#psychologistSidebar .nav-link svg,
#directorSidebar .nav-link i,
#directorSidebar .nav-link svg {
  margin-right: 10px;
  font-size: 1.1rem;
}

#adminSidebar .nav-link.text-danger,
#psychologistSidebar .nav-link.text-danger,
#directorSidebar .nav-link.text-danger {
  background: rgba(239, 71, 111, 0.1);
  color: var(--danger-color) !important;
}

#adminSidebar .nav-link.text-danger:hover,
#psychologistSidebar .nav-link.text-danger:hover,
#directorSidebar .nav-link.text-danger:hover {
  background: rgba(239, 71, 111, 0.2);
}

/* Admin Content Area */
.col.py-5 {
  background-color: #f5f7ff;
  min-height: 100vh;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  flex: 1 0 auto;
}

/* Admin Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

/* Admin Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

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

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-outline-success {
  color: var(--success-color);
  border-color: var(--success-color);
}

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

.btn-outline-danger {
  color: var(--danger-color);
  border-color: var(--danger-color);
}

/* Admin Tables */
.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.table td {
  vertical-align: middle;
}

/* Form Controls */
.form-control, .form-select {
  border-radius: var(--border-radius);
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Stats Cards */
.stats-card {
  border-radius: var(--border-radius);
  padding: 1.5rem;
  background: white;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.stats-card .stats-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stats-card .stats-title {
  color: var(--gray-color);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.stats-card .stats-value {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Alert Messages */
.alert {
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: none;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.05);
}

.alert-success {
  background-color: rgba(6, 214, 160, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background-color: rgba(239, 71, 111, 0.1);
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

.alert-warning {
  background-color: rgba(255, 209, 102, 0.1);
  color: #e6b800;
  border-left: 4px solid var(--warning-color);
}

.alert-info {
  /* background-color: rgba(72, 202, 228, 0.1); */
  /* color: var(--accent-color); */
  border-left: 4px solid var(--accent-color);
}

/* Responsive Fixes */
html, body {
  height: 100%;
}

.container, .container-fluid {
  flex: 1 0 auto;
}

@media (min-width: 992px) {
  #adminSidebar {
    width: 280px !important;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1052;
  }
  
  .admin-main-content, .col.py-5 {
    margin-left: 280px !important;
    width: calc(100% - 280px) !important;
    max-width: 100%;
  }
}

@media (max-width: 991.98px) {
  #adminSidebar {
    width: 280px !important;
    max-width: 80vw;
    z-index: 1052;
  }
  
  .admin-main-content, .col.py-5 {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

button.navbar-toggler {
  background-color: #2b2d42 !important;
}

