:root {
  --tech-bg: #0d0d0f;
  --tech-card: #16161a;
  --tech-sidebar: #000000;
  --tech-purple: #a78bfa;
  --tech-purple-glow: rgba(167, 139, 250, 0.15);
  --tech-green: #34d399;
  --tech-red: #f87171;
  --tech-blue: #38bdf8;
  --tech-text: #ffffff; 
  --tech-text-muted: #a1a1aa; 
  --tech-border: rgba(255, 255, 255, 0.08);


  --biblio-purple: var(--tech-purple);
  --biblio-green: var(--tech-green);
  --biblio-blue: var(--tech-blue);
  --biblio-red: var(--tech-red);
}

body {
  background-color: var(--tech-bg) !important;
  color: var(--tech-text) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
}


h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  color: var(--tech-text) !important;
  font-weight: 700;
}

p, span, label {
  color: var(--tech-text);
}

.text-muted, .small, .text-muted-custom {
  color: var(--tech-text-muted) !important;
}


.sidebar-tech {
  width: 240px;
  height: 100vh;
  position: fixed;
  background-color: var(--tech-sidebar) !important;
  border-right: 1px solid var(--tech-border);
  transition: all 0.3s ease;
}

.nav-link-tech {
  color: var(--tech-text-muted) !important;
  transition: all 0.2s ease;
}

.nav-link-tech {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--tech-text-muted) !important;
  text-decoration: none !important;
}

.nav-link-tech i {
  font-size: 1.1rem;
}

.nav-link-tech:hover {
  background: rgba(167, 139, 250, 0.05);
  color: var(--tech-purple) !important;
}


.nav-link-tech.active {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.15) 0%, transparent 100%);
  color: var(--tech-purple) !important;
  border-left: 3px solid var(--tech-purple);
}

.tracking-wider {
  letter-spacing: 2px;
}

.btn-purple {
  background-color: var(--tech-purple) !important;
  color: #000000 !important;
  font-weight: 800;
  border: none;
}


.badge-tech {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
}

.badge-available { color: var(--tech-green) !important; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-loaned { color: var(--tech-blue) !important; border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-overdue { color: var(--tech-red) !important; border: 1px solid rgba(248, 113, 113, 0.3); }

.table-container-custom {
  background: transparent !important;
  border: none !important;
}


.table-tech-v2 {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 12px !important; 
  color: var(--tech-text) !important;
}

.table-tech-v2 thead th {
  color: var(--tech-text-muted) !important;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none !important;
  padding: 0 1.5rem 0.5rem 1.5rem;
  background-color: var(--tech-bg) !important;
}


.table-tech-v2 tbody tr {
  background-color: var(--tech-card) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.table-tech-v2 tbody tr:hover {
  transform: scale(1.005);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.table-tech-v2 tbody td {
  padding: 1.2rem 1.5rem !important;
  border: none !important;
  background-color: var(--tech-card) !important;
}


.table-tech-v2 tbody td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.table-tech-v2 tbody td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}


.book-title-link {
  color: var(--tech-blue) !important;
  text-decoration: none;
  font-weight: 600;
}

.isbn-text {
  color: var(--tech-blue) !important;
  font-family: 'JetBrains Mono', monospace;
}


.glass-card {
  background-color: var(--tech-card);
  border: 1px solid var(--tech-border);
  border-radius: 12px;
  padding: 1.5rem;
}


.book-cover-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}


.badge-tech {
  padding: 0.5em 1em;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-confirm-glow {
  background-color: var(--tech-purple) !important;
  color: #000 !important;
  font-weight: 800;
  border: none;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.btn-confirm-glow:hover {
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.6);
  transform: translateY(-2px);
}


.avatar-placeholder {
  width: 40px;
  height: 40px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--tech-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}


.form-control:focus, .form-select:focus {
  background-color: #2a2a2e !important;
  box-shadow: none;
  border: 1px solid var(--tech-purple) !important;
}

.btn-execute {
  background-color: var(--tech-green) !important;
  color: #0d0d0f !important;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.2);
}

.btn-execute:hover {
  background-color: #2bbd88 !important;
  box-shadow: 0 4px 25px rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
}


.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.sidebar-tech {
  width: 240px;
  height: 100vh;
  position: fixed;
  background-color: var(--tech-sidebar) !important;
  border-right: 1px solid var(--tech-border);
  transition: all 0.3s ease;
  z-index: 1000;
}

@media (max-width: 992px) {
  .sidebar-tech {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--tech-border);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding: 5px;
  }

  main[style*="margin-left: 240px"] {
    margin-left: 0 !important;
    padding: 1rem !important;
  }

  .nav-link-tech {
    white-space: nowrap;
    padding: 0.5rem 1rem;
  }

  .table-tech-v2,
  .table-tech-v2 thead,
  .table-tech-v2 tbody,
  .table-tech-v2 th,
  .table-tech-v2 td,
  .table-tech-v2 tr {
    display: block;
    width: 100%;
  }

  .table-tech-v2 thead {
    display: none;
  }

  .table-tech-v2 tbody tr {
    margin-bottom: 1rem;
    border: 1px solid var(--tech-border);
    border-radius: 12px;
  }

  .table-tech-v2 tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid var(--tech-border) !important;
  }

  .table-tech-v2 tbody td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--tech-text-muted);
    font-size: 0.7rem;
  }
}