:root {
  --primary: #4299E1;
  --primary-dark: #2B6CB0;
  --secondary: #EBF8FF;
  --accent: #F687B3;
  --bg-gradient: linear-gradient(135deg, #E6FFFA 0%, #EBF8FF 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --text-main: #2D3748;
  --text-muted: #718096;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --font-family: 'Outfit', sans-serif;
  --transition: all 0.3s ease;
}

body.dark-mode {
  --primary: #90CDF4;
  --primary-dark: #63B3ED;
  --bg-gradient: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
  --glass-bg: rgba(26, 32, 44, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #F7FAFC;
  --text-muted: #A0AEC0;
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body.dark-mode .blob-1 {
  background: #4A5568 opacity 0.5;
}

body.dark-mode .blob-2 {
  background: #2C5282 opacity 0.5;
}

body.dark-mode .blob-3 {
  background: #2F855A opacity 0.5;
}

body.dark-mode .schedule-table th {
  background: rgba(144, 205, 244, 0.1);
  color: var(--primary);
}

body.dark-mode .schedule-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .active-row {
  background: rgba(66, 153, 225, 0.15) !important;
}

body.dark-mode .break-row {
  background: rgba(254, 178, 178, 0.1) !important;
}

/* Toggle Button */
.glass-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Blobs */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #A3BFFA;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: #FBCFE8;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 300px;
  height: 300px;
  background: #9AE6B4;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -50px);
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

/* Header */
.header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.date-display h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.date-display p {
  color: var (--text-muted);
}

.clock-display h1 {
  font-size: 3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.status-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  transition: transform 0.3s ease;
}

.status-card:hover {
  transform: translateY(-5px);
}

.status-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

.subject-icon {
  font-size: 3rem;
  background: white;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.subject-info h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.progress-bar-container {
  height: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin-top: 16px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 1s linear;
}

/* Table */
.schedule-section {
  overflow: hidden;
}

.schedule-section h3 {
  margin-bottom: 20px;
  color: var(--text-muted);
}

.table-responsive {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.schedule-table th,
.schedule-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-table th {
  background: rgba(66, 153, 225, 0.1);
  color: var(--primary-dark);
  font-weight: 600;
}

.schedule-table tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

.active-row {
  background: rgba(235, 248, 255, 0.8) !important;
  border-left: 4px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .clock-display h1 {
    font-size: 2.5rem;
  }

  .header-panel {
    justify-content: center;
    text-align: center;
  }
}