/* ============================================================
   FILE: style.css - Consolidated & Organized CSS
   DESCRIPTION: All styles for KonsultasiDosen app
   CATEGORIES: Reset, Variables, Layout, Components, Pages, Admin
   ============================================================ */

/* ============================================================
   1. RESET & BASE STYLES
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================================
   2. CSS VARIABLES
   ============================================================ */
:root {
  /* Premium Color Palette - High Contrast */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary: #7e22ce;
  --secondary-dark: #6b21a8;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  
  /* Neutral Colors - High Contrast */
  --light: #ffffff;
  --light-gray: #f8fafc;
  --gray: #64748b;
  --dark: #1e293b;
  --darker: #0f172a;
  
  /* High Contrast Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  
  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary));
  --gradient-dark: linear-gradient(135deg, var(--dark), var(--darker));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  
  /* Enhanced Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.18);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================================
   3. LAYOUT & CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================================
   4. LOADING STATES
   ============================================================ */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: white;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.no-appointments, .no-data, .no-data-valid {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.no-appointments i, .no-data i, .no-data-valid i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.error-state {
  text-align: center;
  padding: 3rem;
  color: var(--danger);
}

.error-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-data-valid {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  border: 2px dashed var(--gray);
}

/* ============================================================
   5. HEADER & NAVIGATION
   ============================================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  margin: var(--space-md) 0;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: var(--space-md);
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition-normal);
}

header:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.header-left {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-primary);
  font-weight: 500;
}

.user-info i {
  font-size: 1.2rem;
  color: var(--primary);
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-group {
  display: flex;
  gap: 0.25rem;
}

.btn-group .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* ============================================================
   7. PAGE STYLES (General)
   ============================================================ */
.page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.page-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================================
   8. HERO SECTION
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
  padding: var(--space-xl) 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  gap: var(--space-md);
}

.floating-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition-normal);
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.2);
}

.floating-card:nth-child(2) {
  animation-delay: 1s;
}

.floating-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.floating-card i {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.floating-card h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.floating-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   9. FEATURES & DOSEN SECTIONS
   ============================================================ */
.features-section {
  margin-bottom: var(--space-xl);
}

.dosen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.dosen-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.dosen-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.dosen-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dosen-photo-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.dosen-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-gray);
  background: var(--light-gray);
  display: block;
  position: relative;
  z-index: 2;
}

.dosen-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid white;
}

.status-indicator.available {
  background: var(--success);
}

.status-indicator.busy {
  background: var(--danger);
}

.status-indicator.unknown {
  background: var(--warning);
}

.dosen-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.dosen-nip {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.dosen-specialization {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.quick-appointment-btn {
  margin-top: var(--space-sm);
  width: 100%;
}

/* ============================================================
   10. STATS SECTION
   ============================================================ */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  transition: var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.2);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-card i {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   11. APPOINTMENTS PAGE
   ============================================================ */
.appointments-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.filters-container {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-group label {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.form-select {
  padding: 10px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  min-width: 150px;
  transition: var(--transition-normal);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

.appointments-container {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.appointments-list {
  min-height: 400px;
}

.appointment-item {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition-normal);
}

.appointment-item:hover {
  background: var(--light);
}

.appointment-item:last-child {
  border-bottom: none;
}

.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.appointment-meta {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.appointment-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.appointment-topic {
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.appointment-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ============================================================
   12. ABOUT PAGE
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.about-card {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.2);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.about-card i {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-card h4 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.about-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid rgba(255,255,255,0.2);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.member-photo {
  margin-bottom: var(--space-md);
}

.member-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--light-gray);
}

.member-info h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.member-nim {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.member-role {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.member-social {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
}

.member-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-normal);
}

.member-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================
   13. FORMS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  z-index: 1;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition-normal);
  background: white;
  color: var(--text-primary);
}

.input-with-icon select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
}

.input-with-icon select:focus {
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%232563eb' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
}

.input-with-icon textarea {
  padding-left: 16px;
  resize: vertical;
  min-height: 100px;
}

.input-with-icon input:focus,
.input-with-icon select:focus,
.input-with-icon textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

/* ============================================================
   14. MODALS (All Modal Types Combined) - PERBAIKAN
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}

/* Appointment Create Modal - PROFESSIONAL REDESIGN */
#appointment-modal .modal-content {
  max-width: 700px;
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#appointment-modal .modal-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  border-bottom: none;
  padding: 28px 32px;
  position: relative;
}

#appointment-modal .modal-header h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

#appointment-modal .modal-header h3 i {
  font-size: 1.5rem;
  opacity: 0.9;
}

#appointment-modal .modal-header p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 90%;
}

#appointment-modal .modal-header .close-modal {
  position: absolute;
  top: 24px;
  right: 24px;
  color: white;
  font-size: 1.8rem;
  opacity: 0.8;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#appointment-modal .modal-header .close-modal:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#appointment-modal .modal-body {
  padding: 32px;
  overflow-y: auto;
  background: #f8fafc;
}

#appointment-modal #appointment-form {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

#appointment-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

#appointment-modal .form-group {
  margin-bottom: 24px;
}

#appointment-modal .form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

#appointment-modal .form-group label i {
  color: #3b82f6;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

#appointment-modal .input-with-icon {
  position: relative;
}

#appointment-modal .input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 2;
  font-size: 1.1rem;
}

#appointment-modal .input-with-icon input,
#appointment-modal .input-with-icon select,
#appointment-modal .input-with-icon textarea {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  color: #1e293b;
  font-weight: 500;
}

#appointment-modal .input-with-icon input:focus,
#appointment-modal .input-with-icon select:focus,
#appointment-modal .input-with-icon textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: white;
}

#appointment-modal .input-with-icon select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 48px;
}

#appointment-modal .input-with-icon textarea {
  padding-left: 16px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

#appointment-modal .form-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
  font-style: italic;
}

/* WA Reminder Section - Professional Redesign */
#appointment-modal .wa-reminder-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #0ea5e9;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

#appointment-modal .wa-reminder-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='%230ea5e9' opacity='0.1'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0.3;
}

#appointment-modal .wa-reminder-section .form-group {
  margin: 0;
}

#appointment-modal .wa-reminder-section label {
  color: #0369a1;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

#appointment-modal .wa-reminder-section label i {
  color: #0ea5e9;
  font-size: 1.2rem;
}

#appointment-modal .wa-reminder-section input {
  border: 2px solid #bae6fd;
  background: white;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 10px;
  color: #0c4a6e;
  font-weight: 500;
}

#appointment-modal .wa-reminder-section input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  outline: none;
}

#appointment-modal .wa-reminder-section small {
  color: #0369a1;
  font-size: 0.85rem;
  margin-top: 8px;
  display: block;
  line-height: 1.4;
  opacity: 0.9;
}

/* Form Actions - Professional Design */
#appointment-modal .form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

#appointment-modal .form-actions .btn {
  min-width: 140px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

#appointment-modal .form-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#appointment-modal .form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #4f8ef7 0%, #2563eb 100%);
}

#appointment-modal .form-actions .btn-outline {
  background: white;
  color: #64748b;
  border: 2px solid #cbd5e1;
  font-weight: 500;
}

#appointment-modal .form-actions .btn-outline:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #94a3b8;
  transform: translateY(-2px);
}

/* Remove duplicate submit button */
#appointment-modal form > button[type="submit"]:not(.btn-primary) {
  display: none;
}

/* Responsive fixes untuk modal appointment */
@media (max-width: 768px) {
  #appointment-modal .modal-content {
    max-height: 95vh;
    margin: 10px;
  }
  
  #appointment-modal .modal-body {
    padding: 24px;
  }
  
  #appointment-modal #appointment-form {
    padding: 24px;
  }
  
  #appointment-modal .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #appointment-modal .form-actions {
    flex-direction: column;
  }
  
  #appointment-modal .form-actions .btn {
    width: 100%;
    min-width: auto;
  }
  
  #appointment-modal .modal-header {
    padding: 24px;
  }
  
  #appointment-modal .modal-header h3 {
    font-size: 1.5rem;
  }
}

/* ============================================================
   14.1 APPOINTMENT CREATE MODAL - BUTTON ENHANCEMENT
   ============================================================ */
#appointment-modal .form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
  background: transparent;
}

#appointment-modal .form-actions .btn {
  min-width: 130px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

#appointment-modal .form-actions .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

#appointment-modal .form-actions .btn:hover::after {
  transform: translateX(100%);
}

#appointment-modal .form-actions .btn i {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

#appointment-modal .form-actions .btn:hover i {
  transform: translateX(2px);
}

/* Tombol Ajukan Janji - Elegant Design */
#appointment-modal .form-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
  position: relative;
  z-index: 1;
}

#appointment-modal .form-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
  background: linear-gradient(135deg, #4f8ef7 0%, #3b82f6 100%);
}

#appointment-modal .form-actions .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

/* Tombol Batal - Elegant Secondary */
#appointment-modal .form-actions .btn-secondary {
  background: white;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

#appointment-modal .form-actions .btn-secondary:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#appointment-modal .form-actions .btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Loading state untuk tombol */
#appointment-modal .form-actions .btn.loading {
  opacity: 0.8;
  pointer-events: none;
}

#appointment-modal .form-actions .btn.loading i {
  animation: spin 1s linear infinite;
}

/* Responsive untuk tombol */
@media (max-width: 768px) {
  #appointment-modal .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  #appointment-modal .form-actions .btn {
    width: 100%;
    min-width: auto;
    padding: 14px 20px;
  }
  
  #appointment-modal .form-actions .btn-primary {
    order: 1;
  }
  
  #appointment-modal .form-actions .btn-secondary {
    order: 2;
  }
}
/* ============================================================
   14.2 APPOINTMENT DETAIL MODAL - ELITE REDESIGN
   ============================================================ */
#appointment-detail-modal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  width: 100%;
  max-width: 850px;
  border-radius: 24px;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

#appointment-detail-modal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #10b981);
  z-index: 1;
}

#appointment-detail-modal .modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 28px 32px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#appointment-detail-modal .modal-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

#appointment-detail-modal .header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

#appointment-detail-modal .modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

#appointment-detail-modal .modal-title h3 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

#appointment-detail-modal .modal-title i {
  color: #60a5fa;
  font-size: 1.4rem;
  background: rgba(96, 165, 250, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#appointment-detail-modal .close-modal {
  color: white;
  font-size: 1.5rem;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

#appointment-detail-modal .close-modal:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

#appointment-detail-modal .header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

#appointment-detail-modal .appointment-id {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(4px);
}

#appointment-detail-modal .status-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

#appointment-detail-modal .status-display .status-badge {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#appointment-detail-modal .modal-body {
  padding: 32px;
  background: transparent;
}

#appointment-detail-modal .appointment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

#appointment-detail-modal .detail-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#appointment-detail-modal .detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

#appointment-detail-modal .detail-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

#appointment-detail-modal .detail-card h4 i {
  color: #3b82f6;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

#appointment-detail-modal .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f8fafc;
}

#appointment-detail-modal .detail-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

#appointment-detail-modal .detail-item label {
  font-weight: 600;
  color: #64748b;
  font-size: 0.9rem;
  min-width: 130px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

#appointment-detail-modal .detail-item span {
  color: #1e293b;
  text-align: right;
  flex: 1;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

#appointment-detail-modal .detail-item .highlight {
  color: #3b82f6;
  font-weight: 600;
}

#appointment-detail-modal .notes-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #bae6fd;
}

#appointment-detail-modal .notes-section h4 {
  color: #0369a1;
  font-size: 1.1rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#appointment-detail-modal .notes-section h4 i {
  color: #0ea5e9;
  font-size: 1.2rem;
}

#appointment-detail-modal .notes-content {
  color: #0c4a6e;
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
  background: white;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e0f2fe;
  font-size: 0.95rem;
}

#appointment-detail-modal .modal-actions {
  padding: 24px 32px;
  background: white;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

#appointment-detail-modal .modal-actions .btn {
  min-width: 120px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

#appointment-detail-modal .modal-actions .btn i {
  font-size: 1.1rem;
}

#appointment-detail-modal .modal-actions .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

#appointment-detail-modal .modal-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

#appointment-detail-modal .modal-actions .btn-secondary {
  background: white;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  font-weight: 500;
}

#appointment-detail-modal .modal-actions .btn-secondary:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

#appointment-detail-modal .modal-actions .btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

#appointment-detail-modal .modal-actions .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

/* Responsive untuk detail modal */
@media (max-width: 768px) {
  #appointment-detail-modal .modal-content {
    max-height: 95vh;
    margin: 10px;
    border-radius: 20px;
  }
  
  #appointment-detail-modal .modal-body {
    padding: 24px;
  }
  
  #appointment-detail-modal .appointment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  #appointment-detail-modal .detail-card {
    padding: 20px;
  }
  
  #appointment-detail-modal .detail-item {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
  
  #appointment-detail-modal .detail-item span {
    text-align: left;
  }
  
  #appointment-detail-modal .modal-actions {
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
  }
  
  #appointment-detail-modal .modal-actions .btn {
    width: 100%;
    min-width: auto;
    padding: 14px 20px;
  }
  
  #appointment-detail-modal .modal-header {
    padding: 24px;
  }
  
  #appointment-detail-modal .header-top {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  #appointment-detail-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  #appointment-detail-modal .header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* ============================================================
   15. FOOTER
   ============================================================ */
footer {
  background: var(--darker);
  color: white;
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-md);
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--space-xs);
}

.footer-section i {
  margin-right: 8px;
  color: var(--primary-light);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================================
   16. BADGES & INDICATORS
   ============================================================ */
/* Role Badges */
.role-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.role-badge.student {
  background: rgba(6, 182, 212, 0.2);
  color: var(--info);
}

.role-badge.dosen {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.role-badge.admin {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-badge.available {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-badge.busy {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.completed {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.canceled {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   17. ADMIN DASHBOARD
   ============================================================ */
.admin-dashboard {
  padding: 2rem 0;
}

.admin-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
}

#admin-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: var(--radius-md);
  align-items: center;
}

#admin-main-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

#admin-main-actions .btn-success {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

#admin-main-actions .btn-success:hover {
  background: #0da271;
  transform: translateY(-2px);
}

#admin-main-actions .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

#admin-main-actions .btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: white;
}

#admin-main-actions .btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.data-table thead {
  background: var(--light-gray);
}

.data-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
  font-size: 0.9rem;
}

.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--light-gray);
  white-space: nowrap;
  font-size: 0.9rem;
}

.data-table tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

/* Responsive table wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive .data-table {
  min-width: 100%;
}

/* Dosen Availability Grid */
.dosen-availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dosen-availability-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: var(--transition-normal);
}

.dosen-availability-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dosen-email {
  color: var(--gray);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.availability-status {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
}

.current-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.status-text {
  font-weight: 600;
}

.status-text.available {
  color: var(--success);
}

.status-text.busy {
  color: var(--danger);
}

.status-text.unknown {
  color: var(--warning);
}

.last-updated {
  color: var(--gray);
  font-size: 0.85rem;
}

.availability-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.availability-actions .btn {
  flex: 1;
  min-width: 100px;
  justify-content: center;
}

.availability-notes {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--info);
  margin-top: 2rem;
}

.availability-notes h4 {
  margin-top: 0;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.availability-notes ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.availability-notes li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Location Grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.location-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--light-gray);
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.location-card.active-mapping {
  border-left: 4px solid var(--success);
}

.location-card.inactive-mapping {
  border-left: 4px solid var(--danger);
  opacity: 0.7;
}

.location-card.empty-mapping {
  border-left: 4px solid var(--warning);
}

/* Admin Alerts */
.admin-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  min-width: 300px;
  max-width: 500px;
  animation: slideInRight 0.3s ease;
}

.admin-alert-content {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--success);
}

.admin-alert-error .admin-alert-content {
  border-left-color: var(--danger);
}

.admin-alert-success .admin-alert-content {
  border-left-color: var(--success);
}

.admin-alert-close {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.admin-alert-close:hover {
  color: var(--dark);
}

/* ============================================================
   18. UTILITY CLASSES & EFFECTS
   ============================================================ */
/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.flex { display: flex; }
.grid { display: grid; }

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse Animation */
.pulse {
  animation: pulse 2s infinite;
}

/* Rejection Note */
.rejection-note {
  background: rgba(239, 68, 68, 0.1);
  border-left: 4px solid var(--danger);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.rejection-note h5 {
  color: var(--danger);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.rejection-note p {
  color: var(--dark);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Modal Textarea */
.modal-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 100px;
}

.modal-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Role Selector */
.role-selector .btn {
  transition: all 0.3s ease;
  flex: 1;
}

.role-selector .btn-primary {
  background: var(--gradient-primary) !important;
  color: white !important;
}

.role-selector .btn-outline {
  background: transparent !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
}

/* ============================================================
   19. ANIMATIONS
   ============================================================ */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer-effect {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

   @keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

@keyframes detailPop {
  from {
    transform: scale(0.96) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ============================================================
   20. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============================================================
   21. ALERTS & NOTIFICATIONS
   ============================================================ */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s ease;
  max-width: 400px;
}

.alert-success {
  background: var(--success);
}

.alert-error {
  background: var(--danger);
}

.alert-info {
  background: var(--info);
}

/* ============================================================
   22. RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }
  
  header {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .header-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .appointments-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filters-container {
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    margin: var(--space-md);
  }
  
  .dosen-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-dashboard {
    padding: 10px 0;
  }
  
  .admin-section {
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  
  .dosen-availability-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dosen-availability-card {
    padding: 1rem;
  }
  
  .availability-actions {
    flex-direction: column;
  }
  
  .availability-actions .btn {
    width: 100%;
    min-width: auto;
  }
  
  .current-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .admin-alert {
    left: 10px;
    right: 10px;
    top: 10px;
    min-width: auto;
  }
  
  .admin-alert-content {
    padding: 0.75rem 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .dosen-section {
    padding: 15px;
  }
  
  .appointment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .appointment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  #appointment-modal .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  #appointment-modal .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  #appointment-modal .form-actions {
    flex-direction: column;
  }
  
  #appointment-modal .form-actions .btn {
    width: 100%;
  }
  
  #appointment-modal .form-actions .btn-primary {
    max-width: 100%;
  }
  
  #admin-main-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  #admin-main-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .location-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-section {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .page-header h2 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 12px 24px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .admin-actions .btn {
    width: 100%;
  }
  
  .availability-notes {
    padding: 1rem;
  }
  
  .availability-notes ul {
    padding-left: 1rem;
  }
  
  .page-header h2 {
    font-size: 1.8rem;
  }
  
  .page-header h3 {
    font-size: 1.5rem;
  }
  
  .dosen-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 14px 20px;
    min-height: 44px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
  
  .form-select,
  .input-with-icon input,
  .input-with-icon select,
  .input-with-icon textarea {
    padding: 14px 16px 14px 44px;
    font-size: 16px;
  }
  
  .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .dosen-availability-card {
    border: 2px solid var(--primary);
  }
  
  .status-indicator {
    border: 1px solid var(--dark);
  }
  
  .admin-alert-content {
    border: 2px solid;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .dosen-availability-card,
  .btn,
  .stat-card,
  .floating-card {
    transition: none;
  }
  
  .loading-spinner {
    animation: none;
  }
}

/* Tambahkan di style.css */

.hardware-notification {
    font-family: 'Poppins', sans-serif;
}

.notification-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header i {
    margin-right: 8px;
}

.close-notification {
    cursor: pointer;
    font-size: 1.2rem;
}

.notification-body {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.notification-body p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.notification-actions {
    padding: 10px 15px;
    text-align: right;
}

.hardware-badge {
    background: #28a745 !important;
    color: white !important;
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 8px;
    border-radius: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}