/* ==========================================================================
   RUBIK SPEED SOLVING AI - MODERN SCI-FI & SPEEDCUBING STYLING
   Color Palette: Deep Obsidian, Electric Cyan, Neon Emerald, Cyber Purple
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #0a0e17;
    --bg-card: rgba(16, 23, 38, 0.75);
    --bg-card-hover: rgba(22, 32, 53, 0.85);
    --bg-inset: #070a10;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-sub: #64748b;

    /* Accent & Status Colors */
    --accent-cyan: #00f2fe;
    --accent-blue: #38bdf8;
    --accent-purple: #a855f7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-scramble: #fb7185;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --gradient-purple: linear-gradient(135deg, #c084fc 0%, #7e22ce 100%);
    --gradient-emerald: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --gradient-scramble: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --gradient-card-border: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(168, 85, 247, 0.2), rgba(255, 255, 255, 0.05));

    /* Borders & Shadows */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 242, 254, 0.5);
    --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.25);
    --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
    --glow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

    /* Fonts */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere Glows */
.bg-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.bg-glow-1 {
    top: -10%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: -10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7e22ce 0%, transparent 70%);
    animation-delay: -5s;
}

.bg-glow-3 {
    top: 40%;
    right: 30%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
    opacity: 0.2;
    animation-delay: -9s;
}

@keyframes floatGlow {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* Subtle Cyber Grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 1;
}

/* Main Container Layout */
.app-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.app-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.75); }
}

.app-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.logo-icon {
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.6));
    animation: rotateCube 12s linear infinite;
}

@keyframes rotateCube {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-subtitle {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.app-subtitle strong {
    color: var(--text-main);
}

.app-subtitle em {
    color: var(--accent-blue);
    font-style: normal;
}

/* ==========================================================================
   DASHBOARD GRID CONTAINER
   ========================================================================== */
.dashboard-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
    align-items: stretch;
}

@media (max-width: 960px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
}

/* Generic Glass Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glow-card);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-card-border);
}

.card:hover {
    border-color: rgba(0, 242, 254, 0.2);
}

/* Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-icon {
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.card-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-main);
    letter-spacing: 0.3px;
}

/* Status Badges */
.camera-status-tag {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.camera-status-tag.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   CAMERA & WEBCAM VIEWPORT
   ========================================================================== */
.webcam-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 380px;
    background-color: var(--bg-inset);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Webcam Canvas Holder */
.webcam-canvas-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webcam-canvas-holder canvas,
.webcam-canvas-holder video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* Scanner HUD Brackets */
.hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--accent-cyan);
    border-style: solid;
    pointer-events: none;
    z-index: 10;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.hud-top-left { top: 12px; left: 12px; border-width: 3px 0 0 3px; }
.hud-top-right { top: 12px; right: 12px; border-width: 3px 3px 0 0; }
.hud-bottom-left { bottom: 12px; left: 12px; border-width: 0 0 3px 3px; }
.hud-bottom-right { bottom: 12px; right: 12px; border-width: 0 3px 3px 0; }

.hud-center-crosshair {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px dashed rgba(0, 242, 254, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
}

.hud-center-crosshair::before,
.hud-center-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(0, 242, 254, 0.5);
}

.hud-center-crosshair::before {
    top: 50%;
    left: -8px;
    right: -8px;
    height: 1px;
}

.hud-center-crosshair::after {
    left: 50%;
    top: -8px;
    bottom: -8px;
    width: 1px;
}

/* Animated Scanner Laser */
.scanner-laser {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), #fff, var(--accent-cyan), transparent);
    box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
    z-index: 11;
    pointer-events: none;
    display: none;
}

.webcam-viewport.scanning .scanner-laser {
    display: block;
    animation: scanLaser 2.6s ease-in-out infinite alternate;
}

@keyframes scanLaser {
    0% { top: 4%; opacity: 0.9; }
    50% { opacity: 1; }
    100% { top: 96%; opacity: 0.9; }
}

/* Placeholder state */
.camera-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    gap: 0.75rem;
    z-index: 5;
}

.placeholder-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.placeholder-cube {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.camera-placeholder h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.camera-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 280px;
    margin-bottom: 0.5rem;
}

/* Live Telemetry Info */
.telemetry-bar {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    background: rgba(7, 10, 16, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    z-index: 12;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.webcam-viewport.scanning .telemetry-bar {
    opacity: 1;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.telemetry-item span {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.camera-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #06111f;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
    transform: translateY(-1.5px);
}

.btn-danger {
    background: var(--gradient-scramble) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35) !important;
}

.btn-danger:hover {
    box-shadow: 0 6px 22px rgba(244, 63, 94, 0.5) !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1.5px);
}

.btn-accent {
    background: rgba(0, 242, 254, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.btn-accent:hover {
    background: rgba(0, 242, 254, 0.25);
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Collapsible Model Settings */
.model-settings-panel {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(7, 10, 16, 0.6);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.model-settings-panel.open {
    display: flex;
}

.model-settings-panel label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.settings-hint {
    font-size: 0.75rem;
    color: var(--text-sub);
}

/* ==========================================================================
   RESULTS & PREDICTION UI
   ========================================================================== */
.results-card {
    justify-content: flex-start;
}

/* Hero Prediksi Utama */
.primary-result-box {
    background: rgba(7, 10, 16, 0.65);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.35s ease;
}

.primary-result-box.status-solved {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.primary-result-box.status-scrambled {
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.15);
}

.result-badge-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.primary-result-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-icon-glow {
    width: 58px;
    height: 58px;
    background: rgba(0, 242, 254, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.result-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.primary-class-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.primary-confidence-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.confidence-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
}

.state-status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
}

.state-status-pill.badge-solved {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.state-status-pill.badge-scrambled {
    background: rgba(244, 63, 94, 0.2);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Prediction List Bars */
.prediction-list-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.section-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.label-muted {
    color: var(--text-sub);
}

.label-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 180px;
}

/* Individual Prediction Bar Item */
.prediction-item {
    background: rgba(7, 10, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.25s ease;
}

.prediction-item.is-top-rank {
    background: rgba(0, 242, 254, 0.06);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.1);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prediction-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.prediction-title .class-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.class-tag.tag-3x3 {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
}

.class-tag.tag-2x2 {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.prediction-score {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}

.prediction-item.is-top-rank .prediction-score {
    color: var(--accent-cyan);
}

/* Progress Track & Bar */
.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-fill.fill-solved {
    background: var(--gradient-emerald);
}

.progress-fill.fill-scrambled {
    background: var(--gradient-scramble);
}

.progress-fill.fill-secondary {
    background: linear-gradient(90deg, #64748b, #94a3b8);
}

/* Empty State */
.empty-state-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-sub);
    gap: 0.6rem;
}

.empty-state-list i {
    font-size: 2.2rem;
    opacity: 0.5;
}

.empty-state-list p {
    font-size: 0.85rem;
    max-width: 280px;
}

/* Guide Footer */
.guide-footer {
    display: flex;
    justify-content: space-around;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.guide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-solved {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 6px var(--accent-emerald);
}

.dot-scrambled {
    background-color: var(--accent-rose);
    box-shadow: 0 0 6px var(--accent-rose);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
    pointer-events: none;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    pointer-events: auto;
    animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
}

.toast.toast-error {
    border-color: rgba(244, 63, 94, 0.5);
    background: rgba(30, 10, 18, 0.95);
}

.toast.toast-error i {
    color: var(--accent-rose);
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
}

.toast.toast-success i {
    color: var(--accent-emerald);
}

.toast.toast-info {
    border-color: rgba(0, 242, 254, 0.4);
}

.toast.toast-info i {
    color: var(--accent-cyan);
}

@keyframes slideInToast {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.app-footer strong {
    color: var(--text-muted);
}

/* Utilities & Animations */
.text-cyan { color: var(--accent-cyan) !important; }
.text-emerald { color: var(--accent-emerald) !important; }
.text-rose { color: var(--accent-rose) !important; }

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

/* Mobile Responsive Adjustments */
@media (max-width: 640px) {
    .app-wrapper {
        padding: 1.25rem 0.75rem;
    }
    
    .card {
        padding: 1rem;
    }

    .camera-controls {
        flex-direction: column;
    }

    .camera-controls .btn {
        width: 100%;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast {
        max-width: 100%;
    }
}
