/* ============================================================
   HELLO KITTY THEME - PINK & CUTE PASTEL WORKSPACE
   ============================================================ */

:root {
  --pink-primary: #ff4d8d;
  --pink-secondary: #ff85b3;
  --pink-accent: #ffb3d1;
  --pink-light: #fff0f5;
  --bg-dark-trans: rgba(26, 11, 19, 0.82);
  --card-bg: rgba(35, 15, 26, 0.88);
  --border-pink: rgba(255, 77, 141, 0.35);
  --text-main: #ffffff;
  --text-sub: #ffccd9;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background-color: #12050b;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* BACKGROUND VIDEO */
#bgVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.65) contrast(1.1);
}

/* INTRO VIDEO OVERLAY */
.video-intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-intro-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skip-video-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--pink-primary);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 77, 141, 0.4);
  transition: 0.2s;
}

.skip-video-btn:hover {
  background: #e6005c;
  transform: scale(1.05);
}

/* MAIN WRAPPER */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* HEADER WORKSPACE */
.top-header {
  background: var(--bg-dark-trans);
  border: 1px solid var(--border-pink);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(255, 77, 141, 0.15);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crest-icon {
  width: 44px;
  height: 44px;
  background: var(--pink-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 77, 141, 0.4);
}

.brand-group h1 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-group h1 span {
  color: var(--pink-primary);
}

.subtitle {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.network-badge {
  background: rgba(255, 77, 141, 0.15);
  border: 1px solid var(--border-pink);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #ff4d8d;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff4d8d;
}

.clock-group {
  display: flex;
  gap: 12px;
}

.clock-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-pink);
  padding: 8px 14px;
  border-radius: 10px;
  text-align: center;
}

.clock-label {
  font-size: 0.65rem;
  color: var(--pink-secondary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.clock-label .icon {
  font-size: 12px;
}

.clock-time {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.clock-date {
  font-size: 0.65rem;
  color: var(--text-sub);
}

/* DASHBOARD GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* CARD STYLES */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-pink);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.card.full-width {
  grid-column: span 2;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 77, 141, 0.2);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-accent);
}

.card-title .icon {
  color: var(--pink-primary);
  font-size: 20px;
}

/* BUTTONS */
.add-btn {
  background: var(--pink-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.add-btn:hover {
  background: #ff1f71;
  transform: translateY(-1px);
}

.add-btn.style-alt {
  background: rgba(255, 77, 141, 0.2);
  color: var(--pink-accent);
  border: 1px solid var(--border-pink);
}

.add-btn.style-alt:hover {
  background: var(--pink-primary);
  color: white;
}

/* SHORTCUTS GRID */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.shortcut-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.2s;
}

.shortcut-item:hover {
  background: var(--pink-primary);
  transform: translateY(-2px);
}

.shortcut-delete {
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
}

.shortcut-delete:hover {
  color: #ffffff;
}

/* FILE HUB LIST */
.file-hub-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-btn-modern {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-pink);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: 0.2s;
}

.file-btn-modern:hover {
  background: rgba(255, 77, 141, 0.2);
  border-color: var(--pink-primary);
  transform: translateX(4px);
}

.btn-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  color: var(--pink-primary);
  font-size: 20px;
}

.btn-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-sub);
}

.arrow {
  color: var(--text-sub);
  font-size: 18px;
}

/* WORKPAD & NOTES MANAGER */
.notes-wrapper {
  display: flex;
  gap: 16px;
  height: 240px;
}

.notes-sidebar-container {
  width: 220px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-pink);
  border-radius: 10px;
  overflow-y: auto;
}

.notes-sidebar {
  display: flex;
  flex-direction: column;
}

.note-item {
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 77, 141, 0.1);
  cursor: pointer;
  color: var(--text-sub);
  transition: 0.2s;
}

.note-item:hover, .note-item.active {
  background: var(--pink-primary);
  color: white;
}

.note-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#note-title-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  padding: 8px 12px;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  outline: none;
}

#note-body-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  padding: 10px 12px;
  color: white;
  font-size: 0.85rem;
  resize: none;
  outline: none;
}

.note-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-count {
  font-size: 0.7rem;
  color: var(--pink-accent);
}

.delete-note-btn {
  background: rgba(255, 0, 85, 0.2);
  color: #ff4d6d;
  border: 1px solid #ff4d6d;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.delete-note-btn:hover {
  background: #ff4d6d;
  color: white;
}

/* YOUTUBE PLAYER */
.yt-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

#ytUrlInput {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  padding: 6px 12px;
  color: white;
  font-size: 0.8rem;
  outline: none;
}

.yt-frame-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border-pink);
}

.yt-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* CALCULATOR */
.calculator-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-pink);
  border-radius: 12px;
  padding: 12px;
}

#calcDisplay {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  padding: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  text-align: right;
  margin-bottom: 12px;
  outline: none;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.calc-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-pink);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.calc-btn:hover {
  background: rgba(255, 77, 141, 0.3);
}

.calc-btn.btn-action {
  background: rgba(255, 77, 141, 0.2);
  color: var(--pink-accent);
}

.calc-btn.btn-danger {
  background: rgba(255, 0, 85, 0.2);
  color: #ff4d6d;
}

.calc-btn.btn-equal {
  background: var(--pink-primary);
  color: white;
}

.calc-btn.btn-equal:hover {
  background: #ff1f71;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.75rem;
  color: var(--text-sub);
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-box {
  background: var(--card-bg);
  border: 1px solid var(--border-pink);
  border-radius: var(--radius);
  padding: 20px;
  width: 90%;
  max-width: 400px;
}

.modal-box.modal-large {
  max-width: 600px;
}

.modal-box h3 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--pink-accent);
}

.modal-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-pink);
  border-radius: 8px;
  padding: 10px;
  color: white;
  margin-bottom: 10px;
  outline: none;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.cancel-btn {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid var(--border-pink);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.save-btn {
  background: var(--pink-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.archive-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-pink);
  padding: 10px;
  border-radius: 8px;
}

.archive-item h4 {
  font-size: 0.85rem;
  color: var(--pink-accent);
}

.archive-item p {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 4px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .card.full-width {
    grid-column: span 1;
  }
  .top-header {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .header-right-group {
    width: 100%;
    justify-content: space-between;
  }
}