/* =========================================
   Intertrue — Custom Styles
   ========================================= */

/* ----- Layout ----- */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: #f4f6fb;
}

/* ----- Sidebar ----- */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1030;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f2f5;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: #0d6efd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #212529;
  letter-spacing: -0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 12px;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #adb5bd;
  padding: 12px 8px 4px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #495057;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav .nav-link:hover {
  background: #f8f9fa;
  color: #0d6efd;
}

.sidebar-nav .nav-link.active {
  background: #e8f0fe;
  color: #0d6efd;
  font-weight: 600;
}

.sidebar-nav .nav-link i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid #f0f2f5;
}

/* ----- Sidebar overlay (mobile) ----- */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1025;
}

.sidebar-overlay.visible {
  display: block;
}

/* ----- Main content ----- */
.main-content {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper {
  flex: 1;
}

/* ----- Navbar ----- */
.app-navbar {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

/* ----- Avatar circle ----- */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

/* ----- Notification dropdown ----- */
.notification-dropdown {
  width: 350px;
  max-height: 420px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.1s;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {
  background: #f0f6ff;
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ----- Auth page ----- */
.auth-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* ----- Dashboard stat cards ----- */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f2f5;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #212529;
}

.stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 4px;
}

/* ----- Applicant cards ----- */
.applicant-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  height: 100%;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.applicant-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #c5d0e5;
}

.applicant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.applicant-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ----- Soft background utilities ----- */
.bg-primary-soft   { background-color: #dbeafe !important; }
.bg-success-soft   { background-color: #d1fae5 !important; }
.bg-warning-soft   { background-color: #fef3c7 !important; }
.bg-info-soft      { background-color: #dbeafe !important; }
.bg-danger-soft    { background-color: #fee2e2 !important; }
.bg-secondary-soft { background-color: #f1f3f5 !important; }

/* ----- Responsive: mobile sidebar ----- */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  }

  .main-content {
    margin-left: 0;
  }
}
