/* ============================================
   NC1 DreamTeam - Honda HDS Viewer
   Dark Theme Styles
   ============================================ */

:root {
    /* Color Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #15151f;
    --bg-hover: #1e1e2a;
    
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #f43f5e;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --border-color: #2a2a3a;
    --border-glow: rgba(0, 212, 255, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Splash Screen
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    z-index: 2;
}

.logo-container {
    position: relative;
    margin-bottom: 3rem;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
    letter-spacing: 0.2em;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.8)); }
}

.logo-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5em;
    margin-top: 0.5rem;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: loading 2s ease-in-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
}

.splash-credit {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* ============================================
   Main Application
   ============================================ */

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app.hidden {
    display: none;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-brand {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.brand-nc1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-dream {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
}

.header-search {
    position: relative;
    flex: 0 1 400px;
}

.header-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.header-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 260px minmax(300px, 1fr) minmax(450px, 550px);
    gap: 0.75rem;
    padding: 0.75rem;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.sidebar,
.content-area,
.details-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

/* Panels */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.panel-header {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.panel-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.panel-content {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.4rem;
    min-height: 0;
    max-height: 100%;
}

.panel-content::-webkit-scrollbar {
    width: 6px;
}

.panel-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.panel-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.filter-input {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Vehicle List */
.vehicle-item {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.vehicle-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.vehicle-item.active {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
}

.vehicle-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.vehicle-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.region-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}

.region-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    min-width: 40px;
    font-weight: 600;
}

.region-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.variant-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-muted);
}

.variant-badge.selected {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Systems List */
.system-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 0.5rem 0;
    overflow: hidden;
    transition: var(--transition-fast);
}

.system-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.system-card.active {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.system-header {
    padding: 0.875rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.system-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.system-bv {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    background: rgba(124, 58, 237, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.system-can-ids {
    padding: 0 1rem 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.can-id {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: var(--accent-primary);
}

/* Details Panel */
.details-section {
    margin-bottom: 1.5rem;
}

.details-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-grid {
    display: grid;
    gap: 0.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.info-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-tertiary);
}

.data-table td {
    font-size: 0.85rem;
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table .mono {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-primary);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
    text-align: center;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-tertiary);
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.search-result-item {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-hover);
    border-left: 3px solid var(--accent-primary);
}

.search-result-vehicle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.search-result-system {
    font-weight: 600;
    color: var(--text-primary);
}

/* Collapsible sections */
.collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0.5rem 0;
}

.collapsible-header:hover {
    color: var(--accent-primary);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.expanded {
    max-height: none;
    overflow-y: visible;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.chevron.rotated {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 250px 1fr 320px;
    }
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar, .details-sidebar {
        max-height: 300px;
    }
}

/* Hex value styling */
.hex-value {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-success);
}

/* Tag styling */
.tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-read {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-success);
}

.tag-write {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-warning);
}

.tag-routine {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-secondary);
}

/* System card improvements */
.system-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.system-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.system-protocol {
    font-size: 0.7rem;
    color: var(--accent-secondary);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    width: fit-content;
}

.can-id-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.25rem 0;
}

.can-id-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.can-id.tx {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-success);
}

.can-id.rx {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-warning);
}

/* DID Group styling */
.did-group {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.did-group-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.did-group-header:hover {
    background: var(--bg-hover);
}

.did-hex {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.did-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.did-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.did-group .data-table {
    margin: 0;
}

.did-group .data-table th,
.did-group .data-table td {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
}

.did-group-content {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    background: var(--bg-primary);
}

.did-group-content::-webkit-scrollbar {
    width: 4px;
}

.did-group-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.did-group-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.did-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-muted);
}

.collapsible-content::-webkit-scrollbar {
    width: 6px;
}

.collapsible-content::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.collapsible-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Unit and conversion styling */
.unit {
    color: var(--accent-success);
    font-weight: 500;
}

.conversion {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Improved table styling */
.data-table .hex-value {
    font-weight: 600;
}

.byte-loc {
    color: var(--accent-warning);
    font-weight: 600;
    text-align: center;
}

.param-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table th {
    white-space: nowrap;
}

.data-table td.conversion {
    font-size: 0.7rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Clickable parameter rows */
.param-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.param-row:hover {
    background-color: rgba(0, 212, 255, 0.15) !important;
}

.param-row:active {
    background-color: rgba(0, 212, 255, 0.25) !important;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 10000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Export button in DID header */
.export-all-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-left: auto;
    margin-right: 0.5rem;
}

.export-all-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Password Gate */
.password-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0a1628 50%, var(--bg-primary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: slideInFromLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.password-gate.slide-out {
    animation: slideOutToLeft 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes slideOutToLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.password-gate.hidden {
    display: none;
}

.password-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
    backdrop-filter: blur(10px);
}

.lock-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    animation: lockPulse 2s ease-in-out infinite;
}

.lock-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes lockPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
        transform: scale(1.05);
    }
}

.password-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.password-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.password-input {
    width: 280px;
    padding: 1rem 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 4px;
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.password-input::placeholder {
    letter-spacing: 1px;
    color: var(--text-muted);
}

.password-submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.password-submit:active {
    transform: translateY(0);
}

.password-submit svg {
    width: 18px;
    height: 18px;
}

/* Full screen error overlay */
.password-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: errorFlash 1.5s ease-out forwards;
}

.password-error-overlay.hidden {
    display: none;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: errorShake 0.5s ease-in-out;
}

.error-content .error-icon {
    width: 100px;
    height: 100px;
    color: white;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
}

.error-content span {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

@keyframes errorFlash {
    0% {
        opacity: 0;
        background: rgba(255, 0, 0, 1);
    }
    10% {
        opacity: 1;
        background: rgba(255, 0, 0, 1);
    }
    20% {
        background: rgba(180, 0, 0, 1);
    }
    30% {
        background: rgba(255, 0, 0, 1);
    }
    40% {
        background: rgba(180, 0, 0, 1);
    }
    50% {
        background: rgba(255, 0, 0, 0.95);
    }
    100% {
        opacity: 0;
        background: rgba(255, 0, 0, 0);
    }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-15px); }
    20%, 40%, 60%, 80% { transform: translateX(15px); }
}

/* Success message - small centered badge */
.password-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.5rem 2.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
    animation: successPop 0.5s ease-out;
}

.password-success.hidden {
    display: none;
}

.password-success span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.password-success .success-icon {
    width: 50px;
    height: 50px;
    color: #00ff88;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.5));
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
