
/* The Luxury Console Design System for BBTG */
:root {
  --bg-dark: #050507;
  --bg-console: #0D0D11;
  --bg-card: rgba(18, 18, 24, 0.7);
  --border-gold: rgba(201, 168, 76, 0.25);
  --gold-primary: #C9A84C;
  --gold-hover: #e2c062;
  --gold-glow: rgba(201, 168, 76, 0.4);
  --text-light: #f8fafc;
  --text-muted: #8e9bb0;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

body.luxury-console {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(201, 168, 76, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(201, 168, 76, 0.02) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-light);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Navbar */
.navbar {
  border-bottom: 1px solid var(--border-gold);
  background: rgba(13, 13, 17, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--gold-primary);
  font-size: 1.6rem;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -3px;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Console Split Wrapper */
.console-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 70px);
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.sidebar {
  border-right: 1px solid var(--border-gold);
  background-color: var(--bg-console);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
  color: var(--text-light);
  background: rgba(201, 168, 76, 0.08);
  border-left: 3px solid var(--gold-primary);
}

/* Main Workspace */
.workspace {
  padding: 40px;
  overflow-y: auto;
  box-sizing: border-box;
}

.view-section {
  display: none;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: block;
}

.dashboard-header {
  margin-bottom: 40px;
}

.dashboard-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #fff 0%, #C9A84C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grid-console {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 30px;
}

@media (max-width: 1100px) {
  .grid-console {
    grid-template-columns: 1fr;
  }
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

/* Case Organizer UI components */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.checklist-item input[type="checkbox"] {
  accent-color: var(--gold-primary);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Custom Interactive Sliders */
.slider-group {
  margin-bottom: 25px;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}

.slider-control {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #181824;
  border-radius: 3px;
  outline: none;
  border: 1px solid var(--border-gold);
}

.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--gold-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px var(--gold-primary);
}

/* Virtual 3D Bookshelf */
.bookshelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.book-card {
  perspective: 1000px;
  cursor: pointer;
  text-decoration: none;
}

.book-inner {
  position: relative;
  width: 100%;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  border-radius: 8px;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.6);
}

.book-card:hover .book-inner {
  transform: rotateY(-15deg) scale(1.03);
}

.book-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
}

.book-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Handbook / Manual Panel */
.handbook-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.handbook-toc {
  background: rgba(13,13,17,0.5);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
}

.toc-link {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.toc-link.active, .toc-link:hover {
  background: rgba(201,168,76,0.08);
  color: var(--gold-primary);
}

.handbook-reader {
  background: rgba(18,18,24,0.6);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 30px;
  max-height: 500px;
  overflow-y: auto;
  line-height: 1.7;
}

/* Forms and Buttons */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: #121216;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  color: #fff;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--gold-primary);
  outline: none;
}

.btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
  border: none;
  font-family: var(--font-heading);
  display: inline-block;
}

.btn-gold {
  background: var(--gold-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.2);
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(201, 168, 76, 0.05);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 9, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  position: relative;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Vetted Attorneys */
.lawyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lawyer-card {
  background: rgba(13,13,17,0.6);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 20px;
}

.lawyer-stat {
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lawyer-stat strong {
  color: var(--gold-primary);
}

/* Checklist and Table */
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tracker-table th, .tracker-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tracker-table th {
  color: var(--gold-primary);
  font-weight: 600;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
