@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Pirata+One&family=Jost:wght@300;400;500;600;700&display=swap');

:root {
  /* Core Concept Colors - Tattoo Studio Red, Gold & Onyx */
  --color-onyx: #0a0a0a;
  --color-charcoal: #121212;
  --color-neon-red: #ff0033;
  --color-neon-red-glow: rgba(255, 0, 51, 0.2);
  --color-aged-gold: #c5a059;
  --color-aged-gold-glow: rgba(197, 160, 89, 0.2);
  
  --color-background: #080808;
  --color-surface: var(--color-charcoal);
  --color-text: #f8fafc;
  --color-muted: #64748b;
  --color-border: rgba(255, 255, 255, 0.05);
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-tattoo: 'Pirata One', system-ui;
  --font-secondary: 'Jost', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 4rem;

  --color-primary: var(--color-charcoal);
  
  /* Effects */
  --glass-bg: rgba(10, 10, 10, 0.9);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(25px);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.6);
  --transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* Global Form Select Fixes */
select option {
  background-color: #121212 !important;
  color: white !important;
}

input, select, textarea {
  color-scheme: dark;
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
}

/* Background Texture & Mesh */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--color-background);
  background-image: url('https://www.transparenttextures.com/patterns/concrete-wall.png');
  opacity: 0.15;
  pointer-events: none;
}

/* Typography Overrides */
h1, h2, h3, .logo-text, .page-title {
  font-family: var(--font-tattoo) !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-aged-gold);
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.text-muted { color: var(--color-muted); }
.text-accent-red { color: var(--color-neon-red); }
.text-accent-gold { color: var(--color-aged-gold); }
.text-accent-teal { color: #ffffff; }

/* Layout Shell */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: #0a0a0a;
  backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-sm) var(--space-md); /* Reduced bottom padding */
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: 0 var(--space-sm);
  flex-shrink: 0; /* Don't shrink logo */
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: var(--space-md);
}

.nav-links::-webkit-scrollbar { width: 4px; }
.nav-links::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.nav-section-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: var(--space-xs) 0 var(--space-xs) 12px;
  opacity: 0.5;
}

.nav-section-title:not(:first-child) {
    margin-top: var(--space-lg);
}

.sidebar-footer {
    padding: var(--space-md) var(--space-sm) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0; /* Keep footer fixed height */
}

.version-brand {
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.1em;
    opacity: 0.4;
    transition: var(--transition);
}

.version-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.55rem;
    color: var(--color-aged-gold);
    letter-spacing: 0.05em;
    opacity: 0.3;
}

.sidebar-footer:hover .version-brand,
.sidebar-footer:hover .version-number {
    opacity: 0.8;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateX(6px);
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Main Workspace */
.main-content {
  flex: 1;
  padding: 0 var(--space-xl) var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: #0a0a0a;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: var(--space-xl);
}

#header-view-title {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: var(--font-tattoo);
    color: var(--color-aged-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-icon-btn i {
    width: 20px;
    height: 20px;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-aged-gold);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.8);
    display: none;
    flex-direction: column;
    padding: 10px;
    z-index: 2000;
    animation: slideDown 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.profile-dropdown.active {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item i {
    width: 20px;
    height: 20px;
    color: var(--color-muted);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-aged-gold);
    transform: translateX(4px);
}

.dropdown-item:hover i {
    color: var(--color-aged-gold);
}

.dropdown-item.logout {
    color: var(--color-neon-red);
    margin-top: 5px;
    border-top: 1px solid var(--glass-border);
    border-radius: 0 0 12px 12px;
    padding-top: 15px;
}

.dropdown-item.logout:hover {
    background: rgba(255, 0, 51, 0.05);
    color: #ff3366;
}

.dropdown-item.logout i {
    color: var(--color-neon-red);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid rgba(197, 160, 89, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover { border-color: rgba(197, 160, 89, 0.3); background: rgba(197, 160, 89, 0.04); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.stat-value {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin: 15px 0 5px 0;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-neon-red), #d0002b);
  color: white;
  padding: 1rem 2rem;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 0, 51, 0.2); }

.input {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  color: white;
  width: 100%;
  transition: var(--transition);
}

.input:focus { border-color: var(--color-aged-gold); outline: none; background: rgba(255, 255, 255, 0.04); }

.label-sm { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--color-muted); margin-bottom: 6px; display: block; }

/* Timeline */
.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--color-charcoal);
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-neon-red);
    box-shadow: 0 0 8px var(--color-neon-red-glow);
}

/* --- TV DASHBOARD ULTIMATE (v1.4.3) --- */
.tv-view {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050505;
    padding: 2vh 2vw 80px 2vw; /* Room for ticker */
    display: flex;
    flex-direction: column;
    gap: 3vh;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.tv-header { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; z-index: 10; }

.tv-clock {
    font-size: clamp(3rem, 12vh, 7rem);
    font-weight: 900;
    line-height: 0.85;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    color: white;
}

.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
    gap: 2vw;
    flex: 1;
    align-items: center;
}

.tv-card {
    height: 65vh; /* Massive scale requested */
    background: linear-gradient(165deg, #111, #080808);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 48px;
    padding: 4vh 2.5vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    position: relative;
    transition: var(--transition);
}

.tv-card:hover { border-color: var(--color-aged-gold); transform: scale(1.01); }

.tv-status-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tv-status-badge.free { background: rgba(197, 160, 89, 0.1); color: var(--color-aged-gold); border: 1px solid rgba(197, 160, 89, 0.2); }
.tv-status-badge.occupied { background: rgba(255, 0, 51, 0.1); color: var(--color-neon-red); border: 1px solid rgba(255, 0, 51, 0.2); animation: tv-status-pulse 2s infinite ease-in-out; }

.tv-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #ff0033; /* CNN Style News Bar */
    display: flex;
    align-items: center;
    z-index: 10000;
    box-shadow: 0 -10px 40px rgba(255,0,51,0.3);
}

.tv-ticker-label {
    background: #000;
    color: white;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 10001;
}

.tv-marquee-container { flex: 1; overflow: hidden; }

.tv-marquee {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: tv-ticker-scroll 30s linear infinite;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes tv-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.btn-exit-tv {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: 0.3s;
    opacity: 0.1;
}

.btn-exit-tv:hover { background: #ff0033; border-color: #ff0033; opacity: 1; transform: rotate(90deg) scale(1.1); }

.tv-artist-avatar { width: 120px; height: 120px; border-radius: 50%; border: 4px solid #111; box-shadow: 0 0 0 5px rgba(255,0,51,0.2); }
.tv-artist-name { font-size: 3.5rem !important; font-weight: 900; line-height: 1; color: white; margin-bottom: 5px; }

@keyframes tv-status-pulse { 0%, 100% { opacity: 0.7; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
