/* Marble Gallery (MG) Recruitment & Review Portal Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Premium Light App Theme (Matching Figma screenshot) */
  --bg-dark-obsidian: #f5f6f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --border-color: #e2e8f0;
  
  --color-gold: #10b981;
  --color-gold-hover: #059669;
  --color-gold-glow: rgba(16, 185, 129, 0.08);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Importance-based indicators */
  --color-success: #10b981; /* Green */
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b; /* Orange */
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-danger: #ef4444; /* Red */
  --color-danger-bg: rgba(239, 68, 68, 0.1);

  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-obsidian);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

/* Central Login Wrapper (For single page files) */
.login-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--bg-dark-obsidian);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.01) 0%, transparent 45%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--border-color));
}

/* Header */
header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-svg {
  width: 44px;
  height: 22px;
  fill: var(--text-primary) !important;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--color-gold);
}

.header-user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(0, 0, 0, 0.02);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.header-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--border-color);
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.header-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main Layout */
.app-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 63px);
}

/* Sidebar Navigation - Fixed structure */
.sidebar {
  width: 250px;
  background-color: var(--bg-card);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  height: calc(100vh - 63px);
  position: sticky;
  top: 63px;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.nav-btn.active {
  background-color: var(--color-gold-glow);
  color: var(--color-gold);
  border-left: 3px solid var(--color-gold);
}

/* Main Content Area */
main {
  flex: 1;
  padding: 2.5rem;
  background-color: var(--bg-dark-obsidian);
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Page Header & Stats */
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title-row h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--bg-dark-obsidian);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-gold-hover);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.25rem;
  border-radius: var(--border-radius);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

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

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.stat-card.gold::after { background-color: var(--color-gold); }
.stat-card.green::after { background-color: var(--color-success); }
.stat-card.orange::after { background-color: var(--color-warning); }
.stat-card.red::after { background-color: var(--color-danger); }

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-val {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 0.5rem;
}

/* Alert Notification Pulser Banner */
.notification-banner {
  background-color: var(--color-danger-bg);
  border: 1px solid var(--color-danger);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: pulseBg 2s infinite ease-in-out;
}

@keyframes pulseBg {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.notification-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-banner-title {
  font-weight: 600;
  color: var(--color-danger);
  font-size: 0.95rem;
}

.notification-banner-desc {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Content Grid & Lists */
.content-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

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

.panel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.panel-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom Table / List elements */
.employee-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.employee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.employee-row:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.employee-row.active-row {
  border-color: var(--color-gold);
  background-color: var(--color-gold-glow);
}

.employee-row-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.list-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--border-color);
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.list-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.employee-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.emp-name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.emp-role-period {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.status-badge.red {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.orange {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.green {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.blue {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-danger);
  display: inline-block;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Crown Symbol for Top Performers */
.crown-badge {
  color: #ffd700;
  font-size: 1.1rem;
  margin-left: 0.35rem;
  animation: floatCrown 3s ease-in-out infinite;
  display: inline-block;
  cursor: help;
}

@keyframes floatCrown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Repeated Rescheduling Warning Card */
.reschedule-warning-card {
  background-color: var(--color-warning-bg);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Candidate Review Detail Panel */
.detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Timeline component */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
}

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: var(--transition-smooth);
}

.timeline-item.completed .timeline-node {
  background-color: var(--color-success);
  border-color: var(--color-success);
}

.timeline-item.active .timeline-node {
  background-color: var(--bg-card);
  border-color: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
}

.timeline-item.locked .timeline-node {
  background-color: var(--border-color);
  border-color: var(--text-muted);
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-item.locked .timeline-content {
  opacity: 0.5;
  cursor: not-allowed;
}

.timeline-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Forms design */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-gold);
  background-color: #ffffff;
  outline: none;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

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

/* Modals / Dialog Overlay */
dialog {
  margin: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-card);
  color: var(--text-primary);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  outline: none;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
}

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

.dialog-header h3 {
  font-size: 1.25rem;
  color: var(--color-gold);
}

.dialog-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--text-primary);
}

/* Document Upload Grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.doc-card {
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.doc-card.uploaded {
  border-style: solid;
  border-color: var(--color-success);
  background-color: rgba(16, 185, 129, 0.02);
}

.doc-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doc-card-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.doc-preview-thumb {
  width: 100%;
  height: 100px;
  background-color: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.doc-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc-upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.doc-upload-btn-wrapper input[type=file] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* WhatsApp Overlay Simulator */
.whatsapp-sim {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background-color: #0d1418;
  border: 1px solid #232d36;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
  animation: slideUp 0.4s ease;
}

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

.wa-header {
  background-color: #075e54;
  padding: 10px 15px;
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

.wa-header-info {
  flex: 1;
}

.wa-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.wa-status {
  font-size: 0.7rem;
  color: #d1f4cc;
}

.wa-body {
  padding: 15px;
  background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-size: contain;
  max-height: 250px;
  overflow-y: auto;
}

.wa-bubble {
  background-color: #056162;
  color: #e1f3f5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  margin-bottom: 5px;
  word-break: break-word;
}

.wa-bubble::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: #056162;
  border-top-color: #056162;
}

.wa-time {
  font-size: 0.65rem;
  color: #83b3b4;
  text-align: right;
  margin-top: 4px;
}

.wa-footer {
  padding: 10px 15px;
  background-color: #1e2428;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: flex;
  justify-content: flex-end;
}

.wa-close {
  background-color: #075e54;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.wa-close:hover {
  background-color: #128c7e;
}

/* Rating Stars */
.rating-group {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
}
.rating-star {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.rating-star.selected {
  color: var(--color-gold);
}

/* MD Stage Distribution Visual Chart */
.md-chart-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.md-chart-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.md-chart-row-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
}

.md-chart-bar-bg {
  width: 100%;
  height: 10px;
  background-color: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.md-chart-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* Interactive Full-Screen Calendar widget */
.full-calendar-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 650px;
}

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

.full-calendar-month-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
}

.full-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(90px, 1fr);
  gap: 0.5rem;
  flex: 1;
}

.calendar-day-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  text-align: center;
}

.full-calendar-day-card {
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.full-calendar-day-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
}

.full-calendar-day-card.today {
  background-color: rgba(16, 185, 129, 0.08);
  border: 1.5px solid var(--color-gold);
}

.full-calendar-day-number {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-end;
}

.full-calendar-day-card.today .full-calendar-day-number {
  color: var(--color-gold);
}

.full-calendar-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  max-height: 100px;
  width: 100%;
}

.full-calendar-event-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.full-calendar-event-tag.completed {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.full-calendar-event-tag.scheduled {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.full-calendar-event-tag.overdue {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.calendar-day-reviews-pane {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Notification Popover Dropdown */
.notification-bell-container {
  position: relative;
}

.notification-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-danger);
  color: white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-dropdown-panel {
  position: absolute;
  right: 0;
  top: 40px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  z-index: 200;
  max-height: 380px;
  overflow-y: auto;
  padding: 1rem;
  display: none;
}

.notification-item {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.005);
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: var(--transition-smooth);
}

.notification-item:hover {
  background-color: var(--bg-card-hover);
}

.notification-item.unread {
  border-color: var(--color-gold-hover);
  background-color: var(--color-gold-glow);
}

.notification-unread-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Document Upload Progress Ring */
.progress-ring-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}
.progress-ring {
  width: 64px;
  height: 64px;
}
.progress-ring-circle-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 5;
}
.progress-ring-circle {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
  transform: rotate(-90deg);
  transform-origin: 32px 32px;
}

/* Launchpad / Hub Entrance styling */
.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 3rem auto;
}

.launchpad-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.25rem;
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.launchpad-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.launchpad-icon {
  font-size: 3rem;
}

.launchpad-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.launchpad-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Appreciation banner inside Employee Portal */
.milestone-appreciation-banner {
  background-color: var(--color-success-bg);
  border: 1.5px solid var(--color-success);
  border-radius: var(--border-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: slideInDown 0.5s ease;
}

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

.appreciation-title {
  color: var(--color-success);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.appreciation-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ============================================== */
/* PRINT MEDIA DOSSIER STYLING                    */
/* ============================================== --> */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  header, aside.sidebar, button, .stats-grid, .calendar-card, .full-calendar-container, .director-notes-textarea, #notification-bell-btn, .notification-bell-container, .doc-upload-btn-wrapper, select {
    display: none !important;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .app-container {
    display: block !important;
  }
  .panel-card, .detail-content, .timeline-content {
    background: #ffffff !important;
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem !important;
  }
  .status-badge {
    border: 1.5px solid #000000 !important;
    color: #000000 !important;
    background: #ffffff !important;
  }
  .detail-section-title {
    border-bottom: 2px solid #000000 !important;
    color: #000000 !important;
    font-weight: 700 !important;
  }
  .timeline-node {
    border-color: #000000 !important;
    background-color: #ffffff !important;
  }
  .timeline::before {
    background-color: #000000 !important;
  }
}

/* Mobile Bottom Navigation Bar styling */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.mobile-bottom-nav .nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  padding: 0.35rem 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  height: 100%;
  text-align: center;
}

.mobile-bottom-nav .nav-btn span {
  font-size: 1.15rem;
}

.mobile-bottom-nav .nav-btn.active {
  background-color: transparent;
  border-left: none;
  border-bottom: 3.5px solid var(--color-gold);
  color: var(--color-gold);
}

/* Selected calendar day highlight */
.full-calendar-day-card.selected-day {
  border: 2px solid var(--color-gold) !important;
  background-color: var(--color-gold-glow) !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
  }
  body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  header {
    height: 63px;
    flex-shrink: 0;
  }
  .app-container {
    flex-direction: column;
    height: calc(100vh - 63px);
    height: calc(100dvh - 63px);
    overflow: hidden;
    padding-bottom: 65px !important;
  }
  .sidebar {
    display: none !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
    height: 65px;
    flex-shrink: 0;
  }
  main {
    padding: 0.75rem !important;
    overflow-y: auto !important;
    height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }
  .panel-card {
    padding: 0.85rem !important;
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
  }
  .content-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .login-card {
    padding: 1.5rem !important;
    width: 95% !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  .stat-card {
    padding: 1rem !important;
    min-height: 90px !important;
  }
  .stat-val {
    font-size: 1.5rem !important;
  }
  .form-control-row {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .employee-row {
    padding: 0.65rem 0.85rem !important;
  }
  .emp-name {
    font-size: 0.85rem !important;
  }
  .emp-role-period {
    font-size: 0.72rem !important;
  }
  .status-badge {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.65rem !important;
  }
  
  /* Calendar Mobile Optimization */
  .full-calendar-container {
    padding: 0.75rem !important;
    min-height: auto !important;
  }
  .full-calendar-header {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }
  .full-calendar-month-title {
    font-size: 1.1rem !important;
  }
  .full-calendar-grid {
    grid-auto-rows: minmax(50px, 1fr) !important;
    gap: 0.25rem !important;
  }
  .calendar-day-label {
    font-size: 0.65rem !important;
    padding-bottom: 0.25rem !important;
  }
  .full-calendar-day-card {
    padding: 0.25rem !important;
  }
  .full-calendar-day-number {
    font-size: 0.75rem !important;
  }
  .full-calendar-event-tag {
    font-size: 0.55rem !important;
    padding: 0.1rem 0.2rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin-top: 0.15rem !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   LIGHT THEME OVERRIDES
   ========================================================================== */
body.light-theme {
  --bg-dark-obsidian: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --border-color: #e5e7eb;
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --color-gold-glow: rgba(212, 175, 55, 0.06);
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;
}

body.light-theme .form-control {
  background-color: #ffffff;
}

body.light-theme .form-control:focus {
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

body.light-theme .header-user-badge {
  background-color: rgba(0, 0, 0, 0.02);
}

body.light-theme .full-calendar-day-card.today {
  background-color: var(--color-gold-glow);
}

body.light-theme .notification-item {
  background-color: rgba(0, 0, 0, 0.005);
}

body.light-theme .notification-item.unread {
  background-color: rgba(212, 175, 55, 0.05);
  border-color: var(--color-gold);
}

body.light-theme .nav-btn:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

body.light-theme .nav-btn.active {
  background-color: var(--color-gold-glow);
  color: var(--color-gold);
}

body.light-theme .employee-row {
  background-color: rgba(0, 0, 0, 0.008);
}

.layout-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .layout-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* ==========================================================================
   PREMIUM DARK THEME OVERRIDES
   ========================================================================== */
body.dark-theme {
  --bg-dark-obsidian: #0c0f16;
  --bg-card: #141923;
  --bg-card-hover: #1e2535;
  --border-color: #20293a;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --color-gold-glow: rgba(16, 185, 129, 0.15);
  --bg-input: #0c0f16;
  --bg-input-focus: #0c0f16;
}

body.dark-theme .doc-preview-thumb {
  background-color: var(--bg-card-hover) !important;
  border: 1px solid var(--border-color);
}

body.dark-theme .form-control {
  background-color: #0c0f16;
  color: #f8fafc;
}

body.dark-theme .form-control:focus {
  background-color: #0c0f16;
  border-color: var(--color-gold);
}

body.dark-theme .panel-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

body.dark-theme .employee-row {
  background-color: rgba(255, 255, 255, 0.015);
}

body.dark-theme .employee-row:hover {
  background-color: rgba(255, 255, 255, 0.025);
}

body.dark-theme .employee-row.active-row {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: var(--color-gold);
}

body.dark-theme select.form-control option {
  background-color: #141923;
  color: #f8fafc;
}

body.dark-theme .profile-dropdown-panel {
  background-color: #141923 !important;
  border-color: #20293a !important;
}

body.dark-theme .dialog-header, body.dark-theme dialog {
  background-color: #141923 !important;
  color: #f8fafc !important;
  border-color: #20293a !important;
}

body.dark-theme .whatsapp-sim {
  background: #111b21 !important;
}

body.dark-theme .wa-header {
  background: #202c33 !important;
}

/* ==========================================================================
   DASHBOARD SCROLL CARDS (Inner scroll column locking)
   ========================================================================== */
.dashboard-scroll-card {
  max-height: calc(100vh - 290px);
  overflow-y: auto;
}

/* Custom Scrollbar for premium aesthetics */
.dashboard-scroll-card::-webkit-scrollbar,
.employee-list::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
  width: 6px;
}
.dashboard-scroll-card::-webkit-scrollbar-track,
.employee-list::-webkit-scrollbar-track,
.notification-list::-webkit-scrollbar-track {
  background: transparent;
}
.dashboard-scroll-card::-webkit-scrollbar-thumb,
.employee-list::-webkit-scrollbar-thumb,
.notification-list::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.25);
  border-radius: 3px;
}
.dashboard-scroll-card::-webkit-scrollbar-thumb:hover,
.employee-list::-webkit-scrollbar-thumb:hover,
.notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 185, 129, 0.45);
}

@media (max-width: 768px) {
  .dashboard-scroll-card {
    max-height: none !important;
    overflow-y: visible !important;
  }
}

/* Natural scrolling optimization without bottom cropping or excessive margins */
.section-panel {
  padding-bottom: 0.5rem !important;
}

#exec-detail-container,
#mgr-detail-container,
#md-detail-container,
#trainer-detail-container {
  margin-bottom: 1rem !important;
  padding-bottom: 1.5rem !important;
}

main {
  overflow-y: auto !important;
  padding-bottom: 2rem !important;
}

/* Mobile Responsive Optimizations & Overrides */
@media (max-width: 768px) {
  /* 1. Header: Hide "Marble Gallery" text, show only MG logo icon */
  .logo-text {
    display: none !important;
  }
  
  /* 2. Trainee Welcome Header Card: Prevent text collisions */
  .page-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .page-title-row > div:last-child {
    text-align: left !important;
    background: rgba(212, 175, 55, 0.04) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.6 !important;
  }
  
  /* 3. Candidate Dossier Profile Header Card: Restructure buttons grid */
  .detail-content > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }
  
  .detail-content > div:first-child > div:last-child {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }
  
  .detail-content > div:first-child > div:last-child button {
    flex: 1 1 130px !important;
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
  }
}
