/* MSEC Academics — Academics-2 Light Glassmorphism Theme */

:root {
  /* Colors */
  --primary-color: #2563eb; /* blue-600 */
  --primary-hover: #1d4ed8;
  --success-color: #10b981; /* emerald-500 */
  --danger-color: #ef4444; /* red-500 */
  --danger-hover: #dc2626;

  /* Typography */
  --font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Text Colors */
  --text-primary: #0f172a; /* slate-900 */
  --text-secondary: #64748b; /* slate-500 */

  /* Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.1);

  /* Gold Theme Colors */
  --theme-gold-600: #C9A84C;
  --theme-gold-300: #F5D06E;
}

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

html, body {
  overflow: visible !important;
  height: auto !important;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: linear-gradient(135deg, #fdfbf7 0%, #fcf7e6 50%, #f9eed2 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  position: relative;
}

/* Global backdrop blur effect removed to match the sharp background in the reference */

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-center: center; }
.justify-end { justify-content: flex-end; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-3 { padding: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.inline-block { display: inline-block; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-5xl { font-size: 3rem; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-widest { letter-spacing: 0.1em; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-blue-600 { color: #2563eb; }
.text-blue-400 { color: #60a5fa; }
.text-emerald-400 { color: #34d399; }
.text-gray-400 { color: #9ca3af; }
.text-gray-300 { color: #d1d5db; }
.text-white { color: #ffffff; }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.border-l-4 { border-left-width: 4px; }
.border-emerald-500 { border-color: #10b981; }

.grid { display: grid; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUpMobile {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideUpDesktop {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.animate-fadeIn { animation: fadeIn 0.4s ease-out forwards; }
.animate-slideUpMobile { animation: slideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slideUp { animation: slideUpDesktop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* The "Wave Text" */
.wave-text {
  background: linear-gradient(90deg, var(--theme-gold-600), var(--theme-gold-300), var(--theme-gold-600), var(--theme-gold-300));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wave-animation 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(17, 17, 23, 0.1), 0 8px 16px rgba(17, 17, 23, 0.06);
  transition: all 0.3s ease;
}

/* Fix for custom dropdown arrows */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 50px rgba(17, 17, 23, 0.15), 0 12px 24px rgba(17, 17, 23, 0.1);
}

@keyframes wave-animation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Top Navigation Bar */
.top-nav {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
}
.glass-header {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(17, 17, 23, 0.1), 0 8px 16px rgba(17, 17, 23, 0.06);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.glass-modal {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}
.nav-logo {
  height: 28px;
  width: auto;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.text-slate-800 { color: #1e293b; }
.nav-brand-highlight {
  color: var(--theme-gold-600);
  font-weight: 700;
}

/* Intro Overlay */
.intro-overlay {
  position: relative;
  min-height: 100vh;
  margin-top: -100px;
  padding-top: 100px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  background-image: url('./assets/images/campus.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal-gap {
  margin-top: 40px;
}
@media (min-width: 640px) {
  .modal-gap {
    margin-top: 50px;
  }
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-modal {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 448px;
  border-radius: 24px 24px 0 0;
  padding: 32px 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: white;
  animation: slideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-modal .text-primary {
  color: white;
}
.intro-modal .text-secondary {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .intro-overlay {
    align-items: center; /* Center for desktop */
  }
  .intro-modal {
    border-radius: 24px;
    padding: 32px;
    animation: slideUpDesktop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85); /* Changed for dark background */
}

/* Base input styling for main app */
.premium-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-body);
}

/* Glass inputs specifically for the dark modal */
.intro-modal .premium-input {
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}
.intro-modal .premium-input option {
  background: #1e293b; /* Dark background for dropdown options */
  color: white;
}
.intro-modal .premium-input::placeholder {
  color: #e5e7eb; /* text-gray-200 */
}
.intro-modal .premium-input:focus {
  border-color: transparent;
  outline: none;
  box-shadow: 0 0 0 2px #93c5fd; /* focus:ring-blue-300 */
}

.premium-input:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.small-input {
  padding: 8px 12px;
}

/* Buttons */
.btn-glow-gold {
  width: 100%;
  padding: 16px;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 16px;
  cursor: pointer;
  background: linear-gradient(to right, var(--theme-gold-600), var(--theme-gold-300), var(--theme-gold-600));
  background-size: 200% 100%;
  color: #1a1a1a;
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
  transition: all 0.3s ease;
  font-family: var(--font-display);
  animation: bg-pan-x 4s linear infinite;
}
.btn-glow-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(201, 168, 76, 0.6);
}
@keyframes bg-pan-x {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.btn-outline-blue {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}
.btn-outline-blue:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-destructive {
  background: white;
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  transition: all 0.2s ease;
}
.btn-destructive:hover {
  background: var(--danger-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-success {
  background: white;
  color: var(--success-color);
  border: 2px solid var(--success-color);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}
.btn-success:hover {
  background: var(--success-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}


.btn-outline-gray {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-outline-gray:hover {
  background: #f1f5f9;
}

/* Glass Cards */
.card {
  background: var(--glass-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 8px;
  padding-bottom: 20px !important;
}

/* Grade Range Modal Animation */
@keyframes gradeModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 640px) {
  .card { 
    padding: 16px; 
    border-radius: 16px; 
    margin-left: 8px;
    margin-right: 8px;
  }
  .station-clock-card {
    padding: 16px;
  }
  .hide-on-mobile {
    display: none !important;
  }
  /* Premium Card Layout for Tables on Mobile (Academics-2 Match) */
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  thead { display: none; }
  tr {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: relative;
    gap: 8px;
  }
  td {
    border: none !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
  }
  /* First column (Course Name) styled as Card Title */
  tr td:first-child {
    width: 100%;
    margin-bottom: 8px;
  }
  tr td:first-child input {
    font-family: var(--font-display);
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    width: 100%;
    letter-spacing: 0.2px;
    transition: all 0.2s;
  }
  tr td:first-child input:focus {
    border: 1px solid var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
  }
  
  /* Read-only Predefined Course Names */
  tr td:first-child input[readonly] {
    border: 1px solid transparent !important;
    background: transparent !important;
    padding: 8px 0 !important;
    cursor: default;
    /* Allows native horizontal swiping/scrolling for long names */
  }
  tr td:first-child input[readonly]:focus {
    box-shadow: none !important;
    border: 1px solid transparent !important;
    background: transparent !important;
  }
  
  /* Middle columns (Credits/Grade) stacked text-style */
  tr td:not(:first-child):not(:last-child) {
    width: 100%;
    margin-bottom: 4px;
  }
  /* Dynamic Labels */
  tr td:nth-child(2)::before {
    content: "Credits:";
    font-size: 0.85rem;
    color: #64748b;
    margin-right: auto;
    font-weight: 600;
  }
  tr td:nth-child(3)::before {
    content: "Grade:";
    font-size: 0.85rem;
    color: #64748b;
    margin-right: auto;
    font-weight: 600;
  }
  /* Override for CGPA table — 3rd column is GPA, not Grade */
  #cgpa-table tr td:nth-child(3)::before {
    content: "GPA:";
  }
  /* Clean inputs with subtle borders */
  tr td:not(:first-child):not(:last-child) input,
  tr td:not(:first-child):not(:last-child) select { 
    font-family: var(--font-body);
    font-size: 0.95rem !important; 
    font-weight: 600 !important;
    color: #334155 !important;
    padding: 6px 12px !important; 
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 6px !important;
    width: auto;
    min-width: 90px;
    cursor: pointer;
    text-align: right;
  }
  tr td:not(:first-child):not(:last-child) input:focus,
  tr td:not(:first-child):not(:last-child) select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
  }
  
  /* Read-only Predefined Credits */
  tr td:not(:first-child):not(:last-child) input[readonly] {
    border: 1px solid transparent !important;
    background: transparent !important;
    padding: 6px 0 !important;
    cursor: default;
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
  tr td:not(:first-child):not(:last-child) input[readonly]:focus {
    box-shadow: none !important;
    border: 1px solid transparent !important;
  }
  
  /* Delete button styled as Badge in top right */
  tr td:last-child {
    display: none !important; /* Hidden on mobile in favor of swipe-to-delete */
  }
  .page {
    padding: 0;
  }
  /* Reduce Tab Buttons on Mobile */
  .tab-btn {
    font-size: 0.8rem !important;
    padding: 8px 4px !important;
  }
  /* Reduce Preset Title and Button on Mobile */
  #current-preset-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
  }
  #current-preset-scale {
    font-size: 0.75rem !important;
  }
  #btn-change-setup {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .flex-between {
    gap: 8px;
  }
}

/* Tab Switcher */
.segmented-control-container {
  display: flex;
  justify-content: center;
}
.segmented-control {
  position: relative;
  background: white;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: inline-flex;
}
.segmented-highlight {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  background: #eff6ff;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.segmented-buttons {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 2;
}
.tab-btn {
  background: none;
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.2s;
}
.tab-btn.active {
  color: var(--primary-color);
}
.tab-view {
  display: none;
}
.tab-view.active-view {
  display: block;
}

/* Target GPA message cards */
.target-message-card {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
}
.target-message-card.on-track {
  border-left-color: var(--success-color);
  background: #ecfdf5;
}
.target-message-card.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}
.target-message-card.danger {
  border-left-color: var(--danger-color);
  background: #fef2f2;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }

/* Table styling */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0 8px; text-align: left; }
th { padding: 0 12px 8px; font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.5px; }
td { padding: 8px 12px; background: white; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
tr td:first-child { border-left: 1px solid #f1f5f9; border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
tr td:last-child { border-right: 1px solid #f1f5f9; border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

td input, td select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  outline: none;
}
td input:focus, td select:focus { border-color: var(--primary-color); }
td input[type="number"] { text-align: center; font-family: var(--font-body); }
td input[readonly] {
  border-color: transparent !important;
  background: transparent !important;
  cursor: default;
}
td input[readonly]:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Remove button */
.btn-row-remove {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: var(--danger-color);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-row-remove:hover { background: var(--danger-color); color: white; }

/* Station clock card for data display */
.station-clock-card {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.clock-accent-line {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #2563eb);
}

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: white;
  border-left: 4px solid var(--primary-color);
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  font-weight: 600;
  color: var(--text-primary);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s;
}
.modal[aria-hidden="false"] { pointer-events: auto; opacity: 1; }
.modal::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); z-index: -1;
}
.modal-panel {
  background: white;
  border-radius: 20px;
  padding: 24px;
  width: 90%; max-width: 400px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Missing Tailwind Utility Classes */
@media (min-width: 640px) { .sm\:mt-3 { margin-top: 0.75rem; } }
@media (min-width: 768px) { .md\:mt-4 { margin-top: 1rem; } }

/* Fix missing appearance-none */
.appearance-none {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Remove Tailwind Forms background chevron so it doesn't overlap custom SVG */
select {
  background-image: none !important;
}

/* Premium Modern Inputs and Dropdowns inside Tables (overriding Tailwind default classic styles) */
#courses-table td input, 
#courses-table td select,
#cgpa-table td input {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--text-primary) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

#courses-table td input:focus, 
#courses-table td select:focus,
#cgpa-table td input:focus {
  border-color: var(--primary-color) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 2px 4px rgba(37, 99, 235, 0.05) !important;
}

/* Specific alignments and overrides */
#courses-table td input.credits-input,
#cgpa-table td input.cgpa-credits,
#cgpa-table td input.cgpa-gpa {
  text-align: center !important;
}

#courses-table td input[readonly] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: default !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}


