@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');

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

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background-color: #0a0a0a;
  color: #6496ff;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Dashboard Layout - Full Width */
.dashboard-container {
  width: 100%;
  padding: 20px;
  max-width: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(100, 150, 255, 0.3);
  padding-bottom: 20px;
  margin-bottom: 40px;
  gap: 40px;
}

.dashboard-logo {
  flex-shrink: 0;
}

.ascii-logo {
  font-family: 'Courier New', monospace;
  font-size: 8px;
  line-height: 8px;
  color: #6496ff;
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
  white-space: pre;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.dashboard-subtitle {
  font-size: 0.8rem;
  letter-spacing: 3px;
  opacity: 0.8;
  text-align: center;
}

.dashboard-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.dashboard-meta {
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: right;
}

.dashboard-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.about-btn {
  background-color: transparent;
  border: 1px solid rgba(100, 150, 255, 0.5);
  color: #6496ff;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}

.about-btn:hover {
  border-color: #6496ff;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
}

/* Desktop Layout */
.desktop {
  min-height: 100vh;
  position: relative;
  background: #000;
  overflow: hidden;
}

/* Floating Windows */
.floating-window {
  position: absolute;
  background: #0a0a0a;
  border: 1px solid #6496ff;
  z-index: 10;
  min-width: 400px;
  border-radius: 4px;
  overflow: hidden;
}

.login-window .window-content {
  padding: 24px 20px;
}

.login-window {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 185px), calc(-50% + 30px));
  width: 600px;
  height: 400px;
  max-width: 80vw;
  z-index: 20;
}

.lab-window {
  top: 35%;
  left: 50%;
  transform: translate(85px, -50%);
  width: 400px;
  height: 300px;
  max-width: 70vw;
  z-index: 15;
}

.lab-window .window-content {
  padding: 0;
  height: calc(100% - 40px); /* Account for window header */
}

/* Window Headers */
.window-header {
  background: rgba(100, 150, 255, 0.1);
  border-bottom: 1px solid #6496ff;
  padding: 8px 15px;
  user-select: none;
  cursor: move;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-title {
  color: #6496ff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.live-indicator {
  color: #6496ff;
  font-size: 0.8rem;
  animation: pulse 2s infinite;
  margin-right: 5px;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.minimize-btn {
  width: 16px;
  height: 16px;
  border: none;
  background: none;
  color: #6496ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  line-height: 1;
}

.minimize-btn:hover {
  color: rgba(100, 150, 255, 0.7);
}

/* Window Content */
.window-content {
  padding: 20px;
}

.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.352;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  line-height: 20px;
  color: #6496ff;
  overflow: hidden;
  z-index: 0;
  padding: 0;
  margin: 0;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to bottom, transparent, rgba(100, 150, 255, 0.2), transparent);
  animation: scan 8s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(600px);
  }
}

.terminal-header {
  padding: 8px 12px;
  background: rgba(100, 150, 255, 0.05);
  border-bottom: 1px solid rgba(100, 150, 255, 0.2);
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(100, 150, 255, 0.4);
}

.terminal-dot:first-child {
  background: rgba(255, 65, 65, 0.6);
}
.terminal-dot:nth-child(2) {
  background: rgba(255, 176, 0, 0.6);
}
.terminal-dot:nth-child(3) {
  background: rgba(100, 150, 255, 0.6);
}

.terminal-content {
  padding: 40px;
  min-height: 400px;
}

.terminal-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.boot-sequence {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boot-line {
  opacity: 0;
  transition: opacity 0.3s ease;
  color: rgba(100, 150, 255, 0.8);
}

.access-prompt {
  text-align: center;
  padding-bottom: 30px;
}

.ascii-art {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  line-height: 10px;
  color: #6496ff;
  text-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
  white-space: pre;
  letter-spacing: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

.access-subtitle {
  font-size: 0.8rem;
  letter-spacing: 4px;
  opacity: 0.6;
  margin-bottom: 30px;
}

.progress-preview {
  margin-bottom: 20px;
  text-align: center;
}

.ascii-progress-bar {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #6496ff;
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
}

.progress-stats {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(100, 150, 255, 0.6);
}

.minimal-form {
  max-width: 400px;
  margin: 0 auto;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(100, 150, 255, 0.3);
  padding-bottom: 8px;
}

.prompt-symbol {
  color: #6496ff;
  font-size: 1.2rem;
}

.minimal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #6496ff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  letter-spacing: 2px;
}

.minimal-input::placeholder {
  color: rgba(100, 150, 255, 0.3);
  letter-spacing: 2px;
}

/* Override browser autofill styling */
.minimal-input:-webkit-autofill,
.minimal-input:-webkit-autofill:hover,
.minimal-input:-webkit-autofill:focus,
.minimal-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
  -webkit-text-fill-color: #6496ff !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Additional autofill override for different browsers */
.minimal-input:autofill {
  background-color: #0a0a0a !important;
  color: #6496ff !important;
}

.enter-btn {
  display: inline-block;
  padding: 15px 60px;
  background: transparent;
  border: 1px solid #6496ff;
  color: #6496ff;
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.enter-btn {
  animation: btnBlink 1.5s ease-in-out infinite;
}

@keyframes btnBlink {
  0%,
  100% {
    opacity: 1;
    border-color: #6496ff;
  }
  50% {
    opacity: 0.6;
    border-color: rgba(100, 150, 255, 0.5);
  }
}

.enter-btn:hover {
  background: #6496ff;
  color: #0a0a0a;
  box-shadow: 0 0 20px rgba(100, 150, 255, 0.5);
  animation: none;
}

/* Transition Overlay */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.transition-overlay.active {
  opacity: 1;
  visibility: visible;
}

.transition-content {
  text-align: center;
}

.transition-text {
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: rgba(100, 150, 255, 0.7);
  margin-bottom: 30px;
}

.transition-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.transition-bar {
  width: 300px;
  height: 20px;
  background: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.3);
  overflow: hidden;
}

.transition-bar-fill {
  height: 100%;
  width: 0%;
  background: #6496ff;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
  transition: width 0.05s linear;
}

.transition-percentage {
  font-size: 0.85rem;
  color: #6496ff;
  letter-spacing: 2px;
}

.terminal-footer {
  margin-top: 40px;
  height: 20px;
}

.blink {
  animation: blink 1s infinite;
  color: #6496ff;
  font-size: 1.2rem;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.access-denied {
  margin-top: 20px;
  color: #ff4444;
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: glitch 0.3s ease;
}

@keyframes glitch {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.credits {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 0.7rem;
  opacity: 0.3;
  letter-spacing: 1px;
}

/* Dashboard Header */
.header {
  border-bottom: 1px solid rgba(100, 150, 255, 0.3);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.header-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.header-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}

.logout-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 68, 68, 0.5);
  color: #ff4444;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.logout-btn:hover {
  border-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* Sections */
.section {
  margin-bottom: 40px;
}

.section-header {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffb000;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 176, 0, 0.3);
  padding-bottom: 5px;
}

/* Tables */
.intel-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.intel-table th,
.intel-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(100, 150, 255, 0.2);
  font-size: 0.85rem;
}

/* Moved to consolidated definition below */

.intel-table td {
  background-color: rgba(100, 150, 255, 0.02);
}

.intel-table tr:hover td {
  background-color: rgba(100, 150, 255, 0.05);
}

/* Classification badges */
.classification {
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  border-radius: 2px;
}

.classification.VERIFIED {
  background-color: rgba(100, 150, 255, 0.2);
  color: #6496ff;
}

.classification.TESTED {
  background-color: rgba(255, 176, 0, 0.2);
  color: #ffb000;
}

.classification.EXPERIMENTAL {
  background-color: rgba(255, 68, 68, 0.2);
  color: #ff4444;
}

.classification.CLASSIFIED {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.classification.FIELD-TESTED {
  background-color: rgba(100, 150, 255, 0.3);
  color: #6496ff;
}

/* Priority and value indicators */
.priority.ESSENTIAL,
.value.CRITICAL {
  color: #6496ff;
  font-weight: 500;
}

.priority.BACKUP,
.value.HIGH {
  color: #ffb000;
}

.value.MEDIUM {
  color: #ffffff;
  opacity: 0.7;
}

/* Rating bars */
.rating {
  font-family: inherit;
  letter-spacing: 1px;
  color: #6496ff;
}

/* Links */
.access-link {
  color: #6496ff;
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid rgba(100, 150, 255, 0.3);
  font-size: 0.7rem;
  transition: all 0.3s ease;
}

.access-link:hover {
  background-color: rgba(100, 150, 255, 0.1);
  border-color: #6496ff;
}

/* Admin Panel */
.admin-header {
  color: #ff4444;
  border-bottom-color: rgba(255, 68, 68, 0.3);
}

.admin-form {
  background-color: rgba(100, 150, 255, 0.02);
  border: 1px solid rgba(100, 150, 255, 0.2);
  padding: 20px;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #ffb000;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px;
  background-color: #111;
  border: 1px solid rgba(100, 150, 255, 0.3);
  color: #6496ff;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.form-group select {
  padding: 10px 35px 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236496ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6496ff;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
}

.form-group select:hover {
  border-color: #6496ff;
  box-shadow: 0 0 5px rgba(100, 150, 255, 0.2);
}

.form-group select option {
  background-color: #0a0a0a;
  color: #6496ff;
  padding: 10px;
  text-transform: none;
  letter-spacing: normal;
}

/* Category Toggle Buttons */
.category-toggles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-toggle {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.category-toggle input[type='checkbox'] {
  display: none;
}

.toggle-btn {
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid rgba(100, 150, 255, 0.3);
  color: rgba(100, 150, 255, 0.7);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}

.toggle-btn:hover {
  border-color: #6496ff;
  color: #6496ff;
  box-shadow: 0 0 5px rgba(100, 150, 255, 0.2);
}

.category-toggle input[type='checkbox']:checked + .toggle-btn {
  background-color: rgba(100, 150, 255, 0.1);
  border-color: #6496ff;
  color: #6496ff;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
}

.category-toggle input[type='checkbox']:checked + .toggle-btn:hover {
  background-color: rgba(100, 150, 255, 0.2);
}

/* Category tags in table */
.category-tag {
  display: inline-block;
  padding: 2px 6px;
  margin: 1px;
  background-color: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.3);
  color: #6496ff;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.category-tag.category-media {
  border-color: rgba(255, 100, 100, 0.5);
  color: #ff6464;
  background-color: rgba(255, 100, 100, 0.1);
}

.category-tag.category-code {
  border-color: rgba(0, 255, 65, 0.5);
  color: #00ff41;
  background-color: rgba(0, 255, 65, 0.1);
}

.category-tag.category-other {
  border-color: rgba(255, 255, 100, 0.5);
  color: #ffff64;
  background-color: rgba(255, 255, 100, 0.1);
}

.add-btn {
  background-color: transparent;
  border: 1px solid #6496ff;
  color: #6496ff;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background-color: rgba(100, 150, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .dashboard-container {
    padding: 15px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .dashboard-controls {
    align-items: center;
    width: 100%;
  }

  .dashboard-meta {
    text-align: center;
    font-size: 0.7rem;
  }

  .ascii-logo {
    font-size: 6px;
    line-height: 6px;
  }

  /* Floating windows responsive */
  .floating-window {
    position: relative;
    width: 90% !important;
    max-width: 90% !important;
    margin: 10px auto;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }

  .login-window {
    order: 1;
  }

  .lab-window {
    order: 2;
    margin-top: 20px;
  }

  .desktop {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .access-block {
    min-width: auto;
    width: 100%;
    padding: 20px;
  }

  .logo {
    font-size: 2rem;
  }

  .header-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .intel-table {
    font-size: 0.75rem;
  }

  .intel-table th,
  .intel-table td {
    padding: 8px;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    min-width: auto;
  }
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  border-bottom: 1px solid rgba(100, 150, 255, 0.3);
  margin-bottom: 30px;
  overflow-x: auto;
}

.tab-btn {
  background-color: transparent;
  border: none;
  color: rgba(100, 150, 255, 0.6);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 15px 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 1px;
}

.tab-btn:hover {
  color: #6496ff;
  background-color: rgba(100, 150, 255, 0.05);
}

.tab-btn.active {
  color: #6496ff;
  border-bottom-color: #6496ff;
  background-color: rgba(100, 150, 255, 0.1);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
  display: block;
}

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

/* Tool logos */
.tool-logo {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tool-logo:hover {
  opacity: 1;
}

.tool-name-cell {
  display: flex;
  align-items: center;
}

/* Enhanced table for better readability */
.intel-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: rgba(0, 0, 0, 0.3);
}

.intel-table th,
.intel-table td {
  padding: 15px 12px;
  text-align: left;
  border: 1px solid rgba(100, 150, 255, 0.2);
  font-size: 0.85rem;
  vertical-align: top;
}

.intel-table th {
  background-color: #0a0a0a;
  background-image: linear-gradient(
    180deg,
    rgba(100, 150, 255, 0.1) 0%,
    rgba(100, 150, 255, 0.05) 100%
  );
  border-bottom: 2px solid rgba(100, 150, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  color: #6496ff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.intel-table td {
  background-color: rgba(100, 150, 255, 0.02);
}

.intel-table tr:hover td {
  background-color: rgba(100, 150, 255, 0.08);
}

.intel-table tr:nth-child(even) td {
  background-color: rgba(100, 150, 255, 0.04);
}

/* Search and filters */
.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.search-input {
  background-color: #111;
  border: 1px solid rgba(100, 150, 255, 0.3);
  color: #6496ff;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  transition: all 0.3s ease;
  min-width: 200px;
}

.search-input:focus {
  border-color: #6496ff;
  box-shadow: 0 0 5px rgba(100, 150, 255, 0.3);
}

.search-input::placeholder {
  color: rgba(100, 150, 255, 0.4);
}

.filter-select {
  background-color: #0a0a0a;
  border: 1px solid rgba(100, 150, 255, 0.4);
  color: #6496ff;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 35px 10px 15px;
  outline: none;
  cursor: pointer;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236496ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.filter-select:hover {
  border-color: #6496ff;
  box-shadow:
    0 0 10px rgba(100, 150, 255, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
  background-color: #111;
}

.filter-select:focus {
  border-color: #6496ff;
  box-shadow:
    0 0 15px rgba(100, 150, 255, 0.4),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
  background-color: #111;
}

.filter-select option {
  background-color: #0a0a0a;
  color: #6496ff;
  padding: 10px;
  border: none;
}

.results-count {
  color: rgba(100, 150, 255, 0.7);
  font-size: 0.8rem;
  margin-left: auto;
}

/* Favorites functionality */
.favorites-toggle {
  background-color: transparent;
  border: 1px solid rgba(255, 176, 0, 0.5);
  color: rgba(255, 176, 0, 0.7);
  font-family: inherit;
  font-size: 0.8rem;
  padding: 8px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.favorites-toggle.active {
  background-color: rgba(255, 176, 0, 0.1);
  border-color: #ffb000;
  color: #ffb000;
}

.favorites-toggle:hover {
  border-color: #ffb000;
  color: #ffb000;
}

.favorite-star {
  cursor: pointer;
  font-size: 1.2rem;
  color: rgba(255, 176, 0, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.favorite-star.active {
  color: #ffb000;
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

.favorite-star:hover {
  color: #ffb000;
  transform: scale(1.1);
}

/* Modal system - Updated spacing */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #111;
  margin: 3% auto;
  padding: 0;
  border: 1px solid #6496ff;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(100, 150, 255, 0.2);
}

.modal-header {
  background-color: rgba(100, 150, 255, 0.1);
  padding: 15px 20px;
  border-bottom: 1px solid #6496ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  color: #6496ff;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255, 65, 65, 0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: #ff4141;
  transform: scale(1.1);
}

.modal-body {
  padding: 20px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
  color: #6496ff;
  font-family: inherit;
  line-height: 1.6;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section-title {
  color: #ffb000;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.modal-text {
  background-color: rgba(100, 150, 255, 0.03);
  padding: 30px;
  border: 1px solid rgba(100, 150, 255, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-wrap; /* Preserve whitespace and line breaks */
  min-height: 200px;
}

.modal-text p {
  margin: 0 0 1.8em 0;
  line-height: 1.8;
}

.modal-text p:last-child {
  margin-bottom: 0;
}

.modal-text p:empty {
  margin: 0.6em 0; /* Add spacing for empty paragraphs (double line breaks) */
}

.modal-text br {
  line-height: 1.8; /* Extra spacing for single line breaks */
}

.modal-text h3 {
  margin: 0 0 0.8em 0;
  color: #6496ff;
  font-size: 1.1rem;
  padding-bottom: 0.3em;
}

.modal-text h3:first-child {
  margin-top: 0;
}

.modal-text h3:not(:first-child) {
  margin-top: 2.5em;
}

.modal-text h4 {
  margin: 2em 0 1em 0;
  color: #6496ff;
  font-size: 1rem;
}

.modal-text blockquote {
  margin: 1.5em 0;
  padding: 1em;
  background-color: rgba(100, 150, 255, 0.05);
  border-left: 3px solid #6496ff;
  font-style: italic;
}

.modal-text ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

.modal-text ul li {
  margin-bottom: 0.5em;
}

.modal-text hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid rgba(100, 150, 255, 0.3);
}

.modal-text a {
  color: #6496ff;
  text-decoration: underline;
}

.modal-text a:hover {
  color: #8ab4ff;
}

/* Custom scrollbar for modal text */
.modal-text::-webkit-scrollbar {
  width: 8px;
}

.modal-text::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.modal-text::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 255, 0.3);
  border-radius: 4px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 150, 255, 0.5);
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 255, 0.3);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 150, 255, 0.5);
}

/* Preview text in table cells */
.preview-text {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-text:hover {
  color: #ffb000;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 150, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 150, 255, 0.5);
}

/* Action buttons */
.action-btn {
  background: none;
  border: 1px solid rgba(100, 150, 255, 0.3);
  color: #6496ff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 4px 8px;
  margin: 0 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.action-btn:hover {
  border-color: #6496ff;
  background-color: rgba(100, 150, 255, 0.1);
}

.edit-btn:hover {
  color: #ffb000;
  border-color: #ffb000;
  background-color: rgba(255, 176, 0, 0.1);
}

.delete-btn:hover {
  color: #ff4444;
  border-color: #ff4444;
  background-color: rgba(255, 68, 68, 0.1);
}

/* Video Container */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
}

.video-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.loading-bar-container {
  width: 80%;
  max-width: 300px;
  opacity: 1;
}

.loading-bar {
  width: 100%;
  height: 20px;
  background: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: #6496ff;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
}

.loading-percentage {
  text-align: center;
  margin-top: 10px;
  color: #6496ff;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback {
  padding: 40px;
  text-align: center;
  color: #ff4444;
  font-family: inherit;
  letter-spacing: 1px;
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  padding: 10px 15px;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.timestamp {
  color: #6496ff;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
  position: absolute;
  bottom: 15px;
  right: 15px;
}

/* Minimized windows */
.floating-window.minimized {
  width: 200px !important;
  height: 40px !important;
  bottom: 20px !important;
  top: auto !important;
  left: 20px !important;
  right: auto !important;
  transform: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}

.floating-window.minimized .window-content {
  display: none;
}

.floating-window.minimized .window-header {
  cursor: pointer;
}

/* Remove the old rotation style since we're changing the symbol */

/* Admin Controls */
.admin-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.add-new-btn {
  background-color: transparent;
  border: 1px solid rgba(100, 150, 255, 0.5);
  color: #6496ff;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 1px;
}

.add-new-btn:hover {
  border-color: #6496ff;
  box-shadow: 0 0 10px rgba(100, 150, 255, 0.3);
}

/* Admin Modal Styles */
.admin-modal {
  background-color: #0a0a0a;
  border: 2px solid #6496ff;
  max-width: 600px;
  width: 90%;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 20px;
}

.admin-modal .modal-body {
  padding: 0;
  overflow-y: auto;
}

.modal-option-btn {
  background-color: transparent;
  border: 1px solid rgba(100, 150, 255, 0.5);
  color: #6496ff;
  font-family: inherit;
  font-size: 1rem;
  padding: 20px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.modal-option-btn:hover {
  background-color: rgba(100, 150, 255, 0.1);
  border-color: #6496ff;
  transform: translateX(10px);
}

.option-icon {
  color: #ffb000;
  font-weight: bold;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(100, 150, 255, 0.2);
}

.cancel-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 68, 68, 0.5);
  color: #ff4444;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.cancel-btn:hover {
  background-color: rgba(255, 68, 68, 0.1);
  border-color: #ff4444;
}

/* Admin List Styles */
.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.admin-list-item {
  background-color: rgba(100, 150, 255, 0.02);
  border: 1px solid rgba(100, 150, 255, 0.2);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.admin-list-item:hover {
  background-color: rgba(100, 150, 255, 0.05);
  border-color: rgba(100, 150, 255, 0.4);
}

/* Modal Form Adjustments */
.modal-form {
  background-color: transparent;
  border: none;
  padding: 20px;
  margin: 0;
}

.modal-form .form-row {
  margin-bottom: 25px;
}

.modal-form .form-row:last-of-type {
  margin-bottom: 30px;
}

.modal-form .form-group {
  margin-bottom: 15px;
}

.modal-form .form-group label {
  color: #ffb000;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.modal-form textarea {
  margin-bottom: 0;
}

.modal-form .category-toggles {
  margin-top: 8px;
}

/* Form sections for better organization */
.form-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #333;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
}

/* Enhanced checkbox styling for favorites */
.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 0 !important;
  color: #ffb000;
}

.checkbox-label input[type='checkbox'] {
  display: none;
}

.checkmark {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #6496ff;
  background: transparent;
  color: transparent;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  transition: all 0.2s ease;
}

.checkbox-label input[type='checkbox']:checked + .checkmark {
  background: #6496ff;
  color: #000;
}

.checkbox-label:hover .checkmark {
  box-shadow: 0 0 10px #6496ff;
}

/* Tool Links */
.tool-link {
  color: #6496ff;
  text-decoration: none;
  border-bottom: 1px solid #6496ff;
  transition: all 0.3s ease;
  padding: 1px 0;
}

.tool-link::after {
  content: ' ↗';
  font-size: 0.8em;
  opacity: 0.7;
}

.tool-link:hover {
  color: #ffb000;
  border-bottom-color: #ffb000;
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.3);
}

.tool-link:hover::after {
  opacity: 1;
}

/* Title Links */
.title-link {
  color: #6496ff;
  text-decoration: none;
  border-bottom: 1px solid #6496ff;
  transition: all 0.3s ease;
  padding: 1px 0;
  display: inline-block;
}

.title-link::after {
  content: ' ↗';
  font-size: 0.8em;
  opacity: 0.7;
  margin-left: 4px;
}

.title-link:hover {
  color: #ffb000;
  border-bottom-color: #ffb000;
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.3);
}

.title-link:hover::after {
  opacity: 1;
}

.title-text {
  color: #6496ff;
  display: block;
}

/* Drag and Drop Styles */
.draggable-row {
  cursor: grab;
  transition: all 0.2s ease;
}

.draggable-row:active {
  cursor: grabbing;
}

.draggable-row.dragging {
  opacity: 0.5;
  transform: scale(0.95);
  background-color: rgba(100, 150, 255, 0.1);
}

.drag-over {
  border-top: 2px solid #6496ff;
  box-shadow: 0 -2px 10px rgba(100, 150, 255, 0.3);
}

.drag-handle {
  color: #666;
  cursor: grab;
  padding: 0 5px;
  font-size: 12px;
}

.drag-handle:hover {
  color: #6496ff;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Access options styling */
.access-options {
  margin: 20px 0;
}

.option-line {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-link {
  color: #6496ff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px;
  border: 1px solid transparent;
}

.access-link:hover {
  background-color: rgba(100, 150, 255, 0.1);
  border: 1px solid rgba(100, 150, 255, 0.3);
  text-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
}

.access-text {
  color: #6496ff;
}
