:root {
  --bg-dark: #0a0e14;
  --bg-card: rgba(13, 20, 30, 0.85);
  --border-neon: rgba(0, 162, 255, 0.3);
  --neon-blue: #00bfff;
  --neon-green: #00ff66;
  --pure-white: #ffffff;
  --text-gray: #a0aec0;
  --accent-glow: 0 0 15px rgba(0, 191, 255, 0.35);
  --green-glow: 0 0 15px rgba(0, 255, 102, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--pure-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Video Styling */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -999;
  filter: brightness(0.9) contrast(1.1);
}

/* Intro Video Overlay */
.video-intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.video-intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-video-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: rgba(0, 191, 255, 0.2);
  border: 1px solid var(--neon-blue);
  color: var(--pure-white);
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: 0.3s;
}

.skip-video-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
  box-shadow: var(--accent-glow);
}

/* Main Layout Wrapper */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--accent-glow);
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.crest-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 191, 255, 0.1);
  border: 2px solid var(--neon-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  box-shadow: var(--accent-glow);
}

.brand-group h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-group h1 span {
  color: var(--neon-green);
  text-shadow: var(--green-glow);
}

.subtitle {
  font-size: 13px;
  color: var(--text-gray);
}

/* Header Right Group */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.network-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--neon-green);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-green);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: var(--green-glow);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px var(--neon-green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.clock-group {
  display: flex;
  gap: 12px;
}

.clock-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 191, 255, 0.2);
  padding: 8px 14px;
  border-radius: 8px;
  min-width: 130px;
}

.clock-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--neon-blue);
  font-weight: 700;
}

.clock-label .icon {
  font-size: 14px;
}

.clock-time {
  font-size: 15px;
  font-weight: 700;
  color: var(--pure-white);
  margin-top: 2px;
}

.clock-date {
  font-size: 10px;
  color: var(--text-gray);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

@media(max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.card.full-width {
  grid-column: span 2;
}

@media(max-width: 900px) {
  .card.full-width {
    grid-column: span 1;
  }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 191, 255, 0.05);
  border-bottom: 1px solid var(--border-neon);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 0.5px;
}

.card-title .icon {
  font-size: 18px;
}

.card-body {
  padding: 20px;
  flex: 1;
}

/* Buttons & Inputs */
.add-btn {
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.add-btn:hover {
  background: var(--neon-blue);
  color: var(--bg-dark);
  box-shadow: var(--accent-glow);
}

.add-btn.style-alt {
  background: rgba(0, 255, 102, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.add-btn.style-alt:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: var(--green-glow);
}

/* Shortcuts Grid */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.shortcut-chip {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.2);
  padding: 12px 10px;
  border-radius: 8px;
  text-align: center;
  color: var(--pure-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.shortcut-chip:hover {
  border-color: var(--neon-green);
  background: rgba(0, 255, 102, 0.05);
  box-shadow: var(--green-glow);
  transform: translateY(-2px);
}

/* File Hub List */
.file-hub-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.file-btn-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.2);
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--pure-white);
  transition: 0.3s;
}

.file-btn-modern:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 191, 255, 0.08);
  box-shadow: var(--accent-glow);
}

.btn-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  color: var(--neon-blue);
}

.btn-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.btn-sub {
  display: block;
  font-size: 11px;
  color: var(--text-gray);
}

.arrow {
  color: var(--text-gray);
  font-size: 18px;
}

/* Notes / Workpad Manager */
.notes-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 15px;
  min-height: 320px;
}

@media(max-width: 768px) {
  .notes-wrapper {
    grid-template-columns: 1fr;
  }
}

.notes-sidebar-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 191, 255, 0.15);
  border-radius: 8px;
  overflow-y: auto;
  max-height: 300px;
}

.notes-sidebar {
  display: flex;
  flex-direction: column;
}

.note-item {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: 0.2s;
}

.note-item:hover {
  background: rgba(0, 191, 255, 0.1);
}

.note-item.active {
  background: rgba(0, 191, 255, 0.2);
  border-left: 3px solid var(--neon-blue);
}

.note-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pure-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-preview {
  font-size: 11px;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.note-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-editor input, .note-editor textarea {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: var(--pure-white);
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: 0.3s;
}

.note-editor input:focus, .note-editor textarea:focus {
  border-color: var(--neon-green);
  box-shadow: var(--green-glow);
}

.note-editor textarea {
  resize: vertical;
  min-height: 180px;
}

.note-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-count {
  font-size: 11px;
  color: var(--neon-green);
  background: rgba(0, 255, 102, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--neon-green);
}

.delete-note-btn {
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid #ff0055;
  color: #ff0055;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.delete-note-btn:hover {
  background: #ff0055;
  color: var(--pure-white);
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
}

/* YouTube Player Box */
.yt-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.yt-input-group input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--pure-white);
  font-size: 12px;
  outline: none;
}

.yt-frame-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.yt-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Calculator Box */
.calculator-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
}

#calcDisplay {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 191, 255, 0.3);
  color: var(--neon-green);
  text-align: right;
  padding: 10px 14px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  margin-bottom: 12px;
  outline: none;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.calc-btn:hover {
  background: rgba(0, 191, 255, 0.2);
  border-color: var(--neon-blue);
}

.calc-btn.btn-action {
  color: var(--neon-blue);
  border-color: rgba(0, 191, 255, 0.3);
}

.calc-btn.btn-danger {
  color: #ff0055;
  border-color: rgba(255, 0, 85, 0.3);
}

.calc-btn.btn-equal {
  background: rgba(0, 255, 102, 0.2);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.calc-btn.btn-equal:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: var(--green-glow);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: var(--text-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #0d141e;
  border: 1px solid var(--neon-blue);
  box-shadow: var(--accent-glow);
  width: 90%;
  max-width: 400px;
  padding: 25px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-box.modal-large {
  max-width: 600px;
  max-height: 80vh;
}

.modal-box h3 {
  font-size: 16px;
  color: var(--neon-blue);
}

.modal-box input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.3);
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--pure-white);
  outline: none;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 5px;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--text-gray);
  color: var(--text-gray);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.save-btn {
  background: var(--neon-blue);
  border: none;
  color: var(--bg-);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: var(--accent-glow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 18px;
  cursor: pointer;
}

.archive-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
}

.archive-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 191, 255, 0.2);
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.archive-item:hover {
  border-color: var(--neon-green);
  background: rgba(0, 255, 102, 0.05);
}