:root {
    --primary-bg: #121212; /* Darker, cleaner background */
    --panel-bg: rgba(20, 20, 20, 0.95);
    --brand-orange: #FF5722; /* Assumption for Pedal Pass accent if not blue */
    --brand-blue: #00A8E8;   /* Keeping the blue as primary if preferred */
    --neon-blue: #00f3ff;
    --neon-green: #00ff41;
    --neon-red: #ff003c;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden; /* Prevent scroll on desktop */
    display: flex;
    flex-direction: column;
}

/* Announcement Banner */
.announcement-banner {
    background-color: #ff6b00; /* Orange from image/brand */
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
    z-index: 2000; /* Above scanlines */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    flex-shrink: 0; /* Keep size constant */
    font-family: var(--font-body);
}

.announcement-banner strong {
    font-weight: 800;
}

.announcement-banner:hover {
    background-color: #ff8533;
}

/* Background Grid Overlay */
.background-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.5;
}

/* Split Layout */
.app-split-layout {
    display: flex;
    flex-direction: row;
    height: 100%; /* Will take remaining space in flex column body */
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
}

/* Left Panel: Branding */
.brand-panel {
    flex: 0 0 40%; /* 40% width */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid var(--border-color);
    --aug-border: 0px;
    --aug-inlay-bg: transparent;
}

.brand-content {
    padding: 4rem;
    max-width: 400px;
}

.brand-logo {
    width: 150px;
    height: 150px;
    object-fit: contain; /* Ensures logo fits inside without distortion */
    background-color: rgb(180, 180, 180); /* Very light grey (white with low opacity) */
    border-radius: 50%; /* Makes it circular */
    padding: 1rem; /* Space between logo and circle edge */
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-content a:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.4);
    border-color: var(--brand-blue);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin: 0;
    color: white;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.brand-content a:hover .brand-title {
    color: var(--brand-blue);
    text-shadow: 0 0 10px rgba(0, 168, 232, 0.5);
}

.brand-tagline {
    font-size: 1rem;
    color: var(--brand-blue);
    letter-spacing: 3px;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.brand-divider {
    height: 2px;
    width: 60px;
    background: var(--brand-blue);
    margin: 2rem 0;
}

.brand-description {
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.system-status {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--neon-green);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: blink 2s infinite;
}

/* Right Panel: Interaction */
.interaction-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 2rem;
}

.interaction-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.panel-header-mobile {
    display: none; /* Desktop hidden */
}

/* Form Section */
.transponder-form-section {
    --aug-border: 1px;
    --aug-border-bg: var(--brand-blue);
    --aug-inlay-bg: rgba(20, 20, 20, 0.8);
    background: var(--panel-bg);
    padding: 2.5rem;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.input-group {
    margin-bottom: 2rem;
    text-align: left;
}

label {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

input[type="text"] {
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in width */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 1rem;
    font-size: 1.5rem;
    font-family: 'Orbitron', monospace; /* Using Orbitron for input too */
    text-transform: uppercase;
    text-align: center;
    outline: none;
    border-radius: 4px; /* Slightly softer than augmented-ui */
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 15px rgba(0, 168, 232, 0.2);
}

.cyber-btn {
    --aug-border: 2px;
    --aug-border-bg: var(--brand-blue);
    background: rgba(0, 168, 232, 0.1);
    color: var(--brand-blue);
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    font-weight: 700;
}

.cyber-btn:hover {
    background: rgba(0, 168, 232, 0.2);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.3);
    color: white;
    --aug-border-bg: white;
}

.error-message {
    margin-top: 1rem;
    color: var(--neon-red);
    font-family: 'Roboto', monospace;
    font-size: 0.9rem;
    min-height: 1.5rem;
    text-align: center;
}

/* Decoding Panel (Results) */
.decoding-panel {
    /* Keep the glitch style here but cleaner */
    display: none;
    --aug-border: 1px;
    --aug-border-bg: var(--neon-green);
    background: rgba(10, 25, 20, 0.95);
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(0, 255, 65, 0.1);
}

.decoding-panel.active {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Result Grid Layout */
.decoding-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.status-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.status-row .label {
    margin-bottom: 0.5rem;
}

.status-row .value {
    font-size: 2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.data-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 4px;
}

.item-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.label {
    color: var(--brand-blue);
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    margin-bottom: 0.2rem;
}

.value {
    color: var(--text-color);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 1.2rem;
}

.panel-footer {
    margin-top: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--neon-green); /* Using green for success flow */
    box-shadow: 0 0 10px var(--neon-green);
    transition: width 0.1s linear;
}

/* Utilities */
.hidden { display: none; }
.text-red { color: var(--neon-red) !important; text-shadow: 0 0 10px rgba(255, 0, 60, 0.4); }
.text-green { color: var(--neon-green) !important; text-shadow: 0 0 10px rgba(0, 255, 65, 0.4); }

/* Animation */
@keyframes blink {
    50% { opacity: 0.3; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-split-layout {
        flex-direction: column;
        overflow-y: auto; /* Enable scroll on mobile */
    }

    .brand-panel {
        flex: 0 0 auto;
        padding: 3rem 1rem;
        min-height: 40vh;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .brand-content {
        padding: 0;
        text-align: center;
    }

    .brand-divider {
        margin: 1.5rem auto;
    }

    .brand-description {
        display: none; /* Hide long text on mobile */
    }

    .system-status {
        justify-content: center;
    }

    .interaction-panel {
        flex: 1;
        padding: 1.5rem;
        align-items: flex-start; /* Better for mobile forms */
    }
}