/* ============================================
   css/style.css - Complete Consolidated Styles
   ============================================ */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:
    "Trebuchet MS", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}

:root {
  --primary: #1a237e;
  --primary-light: #283593;
  --primary-dark: #0d1445;
  --secondary: #ff6f00;
  --accent: #00bcd4;
  --text-dark: #1a1a2e;
  --text-muted: #555;
  --bg-light: #f5f7fc;
  --bg-white: #ffffff;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --info: #3498db;
  --text-light: #7f8c8d;
  --radius: 12px;
  --transition: all 0.3s ease;
  --sidebar-width: 260px;
  --header-height: 64px;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Trebuchet MS",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #f0f2f5;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2741a9 0%, #d59726 100%);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-box {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2741a9 0%, #d59726 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin: 0 auto 15px;
}

.login-header h1 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 5px;
}

.login-header p {
  color: var(--text-light);
  font-size: 14px;
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 14px;
}

.login-form label i {
  margin-right: 8px;
  color: var(--primary-light);
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 14px;
  transition: var(--transition);
}

.login-form input:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.1);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-light);
}

.forgot-password {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 14px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

.btn-login i {
  margin-right: 8px;
}

.error-message {
  color: var(--danger);
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  min-height: 24px;
}

/* ===== DASHBOARD LAYOUT ===== */
#dashboardPage {
  display: none;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  min-height: var(--header-height);
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2741a9 0%, #d59726 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.sidebar-brand {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  display: none;
  padding: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  margin-bottom: 2px;
}

.sidebar-nav .nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 12px;
  position: relative;
}

.sidebar-nav .nav-item a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.sidebar-nav .nav-item.active a {
  background: rgba(46, 134, 193, 0.15);
  color: white;
}

.sidebar-nav .nav-item.active a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--secondary);
  border-radius: 0 3px 3px 0;
}

.sidebar-nav .nav-item a i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.sidebar-nav .badge {
  background: var(--danger);
  color: white;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
  display: none;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.admin-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}

.admin-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.admin-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-email {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  width: 100%;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(231, 76, 60, 0.25);
}

.btn-logout i {
  margin-right: 8px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f2f5;
  overflow: hidden;
  width: 100%;
}

/* ===== TOP HEADER ===== */
.top-header {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  min-height: var(--header-height);
}

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

.menu-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-dark);
  display: none;
  padding: 4px;
}

.header-left h2 {
  font-size: 18px;
  color: var(--primary);
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f0f2f5;
  border-radius: 8px;
  padding: 6px 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.search-box:focus-within {
  border-color: var(--primary-light);
  background: white;
}

.search-box i {
  color: var(--text-light);
  margin-right: 8px;
  font-size: 14px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 160px;
  padding: 4px 0;
}

.notifications-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  color: var(--text-dark);
  padding: 4px;
}

.notification-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
  display: none;
}

.notification-dot.show {
  display: block;
}

.admin-profile-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}

/* ===== ADMIN DROPDOWN ===== */
.admin-dropdown {
  position: relative;
  display: inline-block;
}

.admin-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background 0.3s;
}

.admin-profile-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.admin-profile-btn .fa-chevron-down {
  color: #666;
  font-size: 12px;
  transition: transform 0.3s;
}

.admin-profile-btn.active .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  display: none;
  z-index: 1000;
  animation: slideDown 0.2s ease;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
}

.dropdown-menu a i {
  width: 20px;
  color: #666;
}

.dropdown-menu hr {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #e8e8e8;
}

/* ===== NOTIFICATIONS PANEL ===== */
.notifications-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-height: 500px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.notifications-panel.show {
  display: block;
}

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.notifications-header h4 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.notifications-header h4 i {
  color: #3498db;
  margin-right: 8px;
}

.notifications-header button {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-size: 13px;
}

.notifications-header button:hover {
  text-decoration: underline;
}

.notifications-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #ebf5fb;
  border-left: 3px solid #3498db;
}

.notification-item .notification-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.notification-item .notification-message {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.notification-item .notification-time {
  font-size: 12px;
  color: #999;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

.notification-empty i {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
  color: #ddd;
}

/* ===== CONTENT AREA ===== */
.content-area {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: #f0f2f5;
}

.page-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-content.active {
  display: block;
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
}

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

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-info p {
  color: var(--text-light);
  font-size: 13px;
  margin: 0;
}

/* ===== CHARTS ===== */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.chart-period {
  font-size: 12px;
  color: var(--text-light);
}

.chart-card canvas {
  max-height: 220px;
  max-width: 100%;
}

/* ===== RECENT APPLICATIONS ===== */
.recent-applications {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.section-header a {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.section-header a:hover {
  text-decoration: underline;
}

/* ===== TABLES ===== */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: #f8f9fa;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid #e8e8e8;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-dark);
}

.data-table tbody tr:hover {
  background: #f8f9fa;
}

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-review {
  background: #cce5ff;
  color: #004085;
}

.status-approved {
  background: #d4edda;
  color: #155724;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 82, 118, 0.3);
}

.btn-secondary {
  padding: 8px 16px;
  background: var(--bg-light);
  color: var(--text-dark);
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #e8e8e8;
}

.btn-success {
  padding: 8px 16px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-danger {
  padding: 8px 16px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

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

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

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.form-options {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}

/* ===== PAGE HEADER ===== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.page-header h2 {
  font-size: 20px;
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-group select {
  padding: 6px 12px;
  border: 2px solid #e8e8e8;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
}

/* ===== TABLE FOOTER ===== */
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination button {
  padding: 6px 12px;
  border: 2px solid #e8e8e8;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

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

.pagination button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.table-info {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== EMAIL GRID ===== */
.email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 16px;
}

.card h3 i {
  margin-right: 8px;
  color: var(--secondary);
}

.bulk-select {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.application-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 8px;
}

.application-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
}

.application-list label:hover {
  background: var(--bg-light);
}

/* ===== ANALYTICS GRID ===== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.analytics-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.analytics-card h4 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 15px;
}

.analytics-card canvas {
  max-height: 260px;
  max-width: 100%;
}

/* ===== SETTINGS GRID ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.settings-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.settings-card h3 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 16px;
}

.settings-card h3 i {
  margin-right: 8px;
  color: var(--secondary);
}

/* ===== PROFILE PAGE ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

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

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5276, #2e86c1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
}

.profile-info h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.profile-info p {
  margin: 5px 0;
  color: #666;
}

.profile-role {
  display: inline-block;
  padding: 4px 12px;
  background: #ebf5fb;
  color: #1a5276;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.profile-details {
  margin-top: 20px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.detail-item i {
  width: 20px;
  color: #1a5276;
}

.detail-item span {
  color: #666;
}

.detail-item strong {
  color: #333;
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideDown 0.3s ease;
}

.modal-large {
  max-width: 900px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e8e8e8;
}

.modal-header h2 {
  font-size: 18px;
  color: var(--primary);
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  padding: 0 8px;
}

.close-modal:hover {
  color: var(--danger);
}

.modal-body {
  padding: 20px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-hover);
  min-width: 280px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast-success {
  border-left: 4px solid var(--success);
}
.toast-error {
  border-left: 4px solid var(--danger);
}
.toast-info {
  border-left: 4px solid var(--info);
}

.toast-icon {
  font-size: 18px;
}
.toast-success .toast-icon {
  color: var(--success);
}
.toast-error .toast-icon {
  color: var(--danger);
}
.toast-info .toast-icon {
  color: var(--info);
}

.toast-content {
  flex: 1;
}
.toast-title {
  font-weight: 600;
  font-size: 13px;
}
.toast-message {
  font-size: 12px;
  color: var(--text-light);
}

.toast-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-light);
}

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

/* ===== LOADING ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== INFO MESSAGES ===== */
.info-message {
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
}
.info-message.success {
  background: #d4edda;
  color: #155724;
}
.info-message.error {
  background: #f8d7da;
  color: #721c24;
}
.info-message.info {
  background: #cce5ff;
  color: #004085;
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-light);
}
.mt-10 {
  margin-top: 10px;
}
.mt-20 {
  margin-top: 20px;
}
.mb-10 {
  margin-bottom: 10px;
}
.mb-20 {
  margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablets & Small Laptops */
@media screen and (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

/* Mobile */
@media screen and (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }

  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
  }

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

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .sidebar-toggle {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .top-header {
    padding: 0 16px;
    height: 56px;
    min-height: 56px;
  }

  .header-left h2 {
    font-size: 16px;
  }

  .content-area {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 12px 16px;
    gap: 12px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .stat-info h3 {
    font-size: 18px;
  }

  .stat-info p {
    font-size: 11px;
  }

  .search-box input {
    width: 100px;
  }

  .search-box input:focus {
    width: 180px;
  }

  .header-right {
    gap: 8px;
  }

  .charts-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .chart-card canvas,
  .analytics-card canvas {
    max-height: 180px;
  }

  .email-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .table-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pagination {
    justify-content: center;
    flex-wrap: wrap;
  }

  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }

  .modal-large {
    max-width: 100%;
  }

  .login-box {
    padding: 24px 20px;
  }

  .notifications-panel {
    width: 320px;
    right: -60px;
  }

  .dropdown-menu {
    right: -20px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .stat-info h3 {
    font-size: 16px;
  }

  .stat-info p {
    font-size: 10px;
  }

  .top-header {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 8px 12px;
    gap: 6px;
  }

  .header-left {
    flex: 1;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-box {
    flex: 1;
  }

  .search-box input {
    width: 100%;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .page-header h2 {
    font-size: 17px;
  }

  .header-actions {
    flex-direction: column;
  }

  .filter-group {
    flex-direction: column;
  }

  .data-table {
    font-size: 12px;
    min-width: 480px;
  }

  .data-table th,
  .data-table td {
    padding: 6px 8px;
  }

  .status-badge {
    font-size: 9px;
    padding: 2px 8px;
  }

  .form-options {
    flex-direction: column;
    gap: 6px;
  }

  .sidebar {
    width: 100%;
    max-width: 300px;
  }

  .content-area {
    padding: 12px;
  }

  .modal-body {
    padding: 12px;
  }

  .modal-header {
    padding: 12px 16px;
  }

  .modal-header h2 {
    font-size: 16px;
  }

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

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .sidebar {
    overflow-y: auto;
  }

  .sidebar-nav .nav-item a {
    padding: 6px 16px;
  }

  .top-header {
    min-height: 48px;
    height: auto;
  }

  .content-area {
    padding: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .stat-card {
    padding: 8px 12px;
  }

  .stat-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .stat-info h3 {
    font-size: 14px;
  }

  .stat-info p {
    font-size: 10px;
  }
}

/* Print */
@media print {
  .sidebar,
  .top-header,
  .btn-primary,
  .btn-secondary,
  .header-actions {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  .content-area {
    padding: 0 !important;
  }

  .stat-card,
  .chart-card,
  .recent-applications {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}
