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

:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --btn-bg: rgba(255, 255, 255, 0.10);
  --btn-hover: rgba(255, 255, 255, 0.22);
  --clock-bg: rgba(255, 255, 255, 0.18);
  --dock-bg: rgba(255, 255, 255, 0.12);
  --panel-bg: rgba(10, 26, 56, 0.18);
  --panel-bg-2: rgba(7, 18, 39, 0.05);
  --border: rgba(255, 255, 255, 0.14);
  --active: #59c3ff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: #071122;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at top left, rgba(20, 55, 110, 0.25), transparent 32%),
    radial-gradient(circle at top right, rgba(16, 83, 145, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(5, 13, 26, 0.45), rgba(8, 22, 46, 0.40), rgba(12, 40, 78, 0.38));
  backdrop-filter: blur(1px);
}

.page {
  min-height: 100vh;
  padding: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: 100px 1fr 170px;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.brand-box {
  display: flex;
  align-items: center;
}

.brand-logo {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 18px rgba(89, 195, 255, 0.55);
}

.top-center {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 28px;
  background: var(--dock-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--shadow);
}

.dock-item,
.extra-btn,
.action-btn {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--btn-bg);
  border: 1px solid var(--border);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.18);
  transition:
    transform 0.18s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.dock-item:hover,
.extra-btn:hover,
.action-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

.dock-item svg,
.action-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  transition: transform 0.18s ease;
}

.dock-item:hover svg,
.action-btn:hover svg {
  transform: scale(1.08);
}

.dock-item.active,
.action-btn.active-action {
  background: rgba(255,255,255,0.32);
  border-color: rgba(89, 195, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    0 8px 18px rgba(0,0,0,0.20),
    0 0 20px rgba(89, 195, 255, 0.12);
}

.indicator {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) scale(0.8);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--active);
  box-shadow: 0 0 14px rgba(89, 195, 255, 0.9);
  opacity: 0;
  transition: 0.18s ease;
}

.dock-item.active .indicator {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.extra-btn {
  flex-shrink: 0;
}

.top-right {
  display: flex;
  justify-content: flex-end;
}

.clock-box {
  min-width: 160px;
  height: 58px;
  border-radius: 18px;
  background: var(--clock-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  user-select: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 8px 18px rgba(0,0,0,0.18);
}

.clock-colon {
  display: inline-block;
  width: 10px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.clock-colon.blink-off {
  opacity: 0.2;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  min-height: calc(100vh - 130px);
}

.sidebar,
.workspace {
  border-radius: 28px;
  background: var(--panel-bg);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 20px 16px;
}

.sidebar-header h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-line {
  width: 100%;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(89,195,255,0.10));
  margin-bottom: 18px;
}

.subject-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.subject-btn {
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: 0.2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.subject-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: translateX(4px);
}

.subject-btn.active-subject {
  background: rgba(255,255,255,0.28);
  border-color: rgba(89, 195, 255, 0.28);
  box-shadow: 0 0 18px rgba(89, 195, 255, 0.16);
}

.workspace {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.workspace-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.workspace-logo {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

.select-wrap select {
  min-width: 250px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.select-wrap select option {
  color: #000;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.content-area {
  flex: 1;
  border-radius: 26px;
  background: var(--panel-bg-2);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.content-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(89,195,255,0.12), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  pointer-events: none;
}

.content-inner {
  position: relative;
  animation: fadeInUp 0.35s ease;
}

.content-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.content-inner h1 {
  font-size: clamp(30px, 3vw, 48px);
  margin-bottom: 14px;
}

.content-inner p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 26px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
}

.info-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-card strong {
  font-size: 14px;
  color: rgba(255,255,255,0.86);
}

.info-card span {
  font-size: 18px;
  color: #fff;
}

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

@media (max-width: 1150px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand-box,
  .top-right {
    justify-content: center;
  }

  .top-center {
    justify-content: center;
    flex-wrap: wrap;
  }

  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 14px;
  }

  .dock {
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }

  .dock::-webkit-scrollbar {
    display: none;
  }

  .dock-item,
  .extra-btn,
  .action-btn {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    flex: 0 0 auto;
  }

  .clock-box {
    min-width: 130px;
    font-size: 24px;
    height: 52px;
  }

  .workspace-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .select-wrap,
  .select-wrap select {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .content-inner p {
    font-size: 16px;
  }
}
