/* Modern Mandala Generator Styles - Premium Landing Page Theme */

:root {
    --mandala-purple: #8541d4;
    --mandala-blue: #1976d2;
    --mandala-green: #26a69a;
    --mandala-pink: #d81b60;
    --mandala-orange: #ff6d00;
    --royal-purple: #4527a0;
    --bg-dark: #0c0b13;
    --bg-card: rgba(22, 21, 29, 0.8);
    --bg-elevated: rgba(28, 27, 37, 0.9);
}

.mandala-app-wrapper {
    display: flex;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
    background: var(--bg-dark);
    position: relative;
}

/* Animated background splashes like landing page */
.mandala-app-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(133, 65, 212, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(38, 166, 154, 0.06) 0%, transparent 45%),
                radial-gradient(circle at 50% 50%, rgba(216, 27, 96, 0.05) 0%, transparent 35%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Sidebar Styling - Glassmorphism */
.mandala-sidebar {
    width: 340px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    position: relative;
}

.sidebar-header h5 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--mandala-purple) 0%, var(--mandala-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

/* Navigation Tabs - Premium Style */
.nav-pills .nav-link {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.nav-pills .nav-link:last-child {
    margin-right: 0;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--mandala-purple) 0%, var(--mandala-blue) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(133, 65, 212, 0.4);
    transform: translateY(-2px);
}

.nav-pills .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Control Groups - Premium Cards */
.control-group {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.control-group:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-group label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 0.3px;
}

/* Sliders - Custom Premium Style */
.form-range {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--mandala-purple), var(--mandala-blue));
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(133, 65, 212, 0.4);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(133, 65, 212, 0.6);
}

.form-range::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--mandala-purple), var(--mandala-blue));
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(133, 65, 212, 0.4);
}

/* Brush Grid & Buttons */
.brush-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.btn-outline-secondary {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.btn-check:checked + .btn-outline-secondary {
    background: linear-gradient(135deg, var(--mandala-purple) 0%, var(--mandala-blue) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(133, 65, 212, 0.4);
}

.btn-outline-danger {
    color: #ff6d6d;
    border-color: rgba(255, 109, 109, 0.3);
    background: rgba(255, 109, 109, 0.05);
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: rgba(255, 109, 109, 0.15);
    border-color: rgba(255, 109, 109, 0.5);
    transform: translateY(-1px);
}

/* Form Controls */
.form-select, .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-select:focus, .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--mandala-purple);
    box-shadow: 0 0 0 3px rgba(133, 65, 212, 0.15);
    color: white;
}

.form-control-color {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-control-color:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--mandala-purple), var(--mandala-blue)) !important;
    box-shadow: 0 2px 8px rgba(133, 65, 212, 0.3);
}

/* Workspace Area - Premium Dark Theme */
.mandala-workspace {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    z-index: 1;
}

.workspace-toolbar {
    height: 70px;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon.active {
    background: linear-gradient(135deg, var(--mandala-purple), var(--mandala-blue));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(133, 65, 212, 0.4);
}

.btn-icon.text-danger:hover {
    background: rgba(255, 109, 109, 0.15);
    color: #ff6d6d;
    border-color: rgba(255, 109, 109, 0.3);
}

.btn-icon:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Action Buttons */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--mandala-green) 0%, #1e8e7a 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, var(--mandala-blue) 0%, #1565c0 100%);
    border: none;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

/* Canvas Area - Premium Container */
.canvas-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

#canvas-container {
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(133, 65, 212, 0.1);
    border-radius: 12px;
    background: white;
    transition: transform 0.1s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.mandala-canvas {
    display: block;
    cursor: crosshair;
    border-radius: 10px;
}

/* Floating Action Button (Randomize) - Premium Gradient */
.fab-randomize {
    background: linear-gradient(135deg, var(--mandala-purple) 0%, var(--mandala-blue) 50%, var(--mandala-pink) 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(133, 65, 212, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.fab-randomize::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.fab-randomize:hover::before {
    left: 100%;
}

.fab-randomize:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(133, 65, 212, 0.5);
}

.fab-randomize:active {
    transform: translateY(-1px) scale(0.98);
}

/* Zoom Controls */
.bg-dark.rounded-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 0.35rem 0.75rem !important;
}

#zoomLevel {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.85rem;
}

/* Color Palette - Premium Swatches */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.palette-swatch {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.palette-swatch:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.palette-swatch.active {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(133, 65, 212, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* Custom Scrollbar - Premium Style */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--mandala-purple), var(--mandala-blue));
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--mandala-blue), var(--mandala-purple));
}

/* Dividers */
.vr {
    background-color: rgba(255, 255, 255, 0.12) !important;
    opacity: 1 !important;
    width: 1px;
    height: 24px;
}

/* Form Switches */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--mandala-purple);
    border-color: var(--mandala-purple);
    box-shadow: 0 0 10px rgba(133, 65, 212, 0.5);
}

.form-check-input:focus {
    border-color: var(--mandala-purple);
    box-shadow: 0 0 0 3px rgba(133, 65, 212, 0.25);
}

/* Button Groups */
.btn-group {
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    border-right: none;
}

/* Modals - Premium Dark Theme */
.modal-content {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 2rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--mandala-purple), var(--mandala-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-close-white {
    filter: brightness(1.2);
    opacity: 0.8;
}

.btn-close-white:hover {
    opacity: 1;
}

.btn-outline-light {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Fullscreen Mode */
.fullscreen-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: var(--bg-dark);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: var(--mandala-purple);
    border-right-color: transparent;
}

/* Minimap */
#canvas-minimap {
    border: 2px solid rgba(133, 65, 212, 0.4) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
    background: rgba(22, 21, 29, 0.95) !important;
    backdrop-filter: blur(10px);
}

#minimap-viewport {
    border: 2px solid var(--mandala-pink) !important;
    background: rgba(216, 27, 96, 0.15) !important;
}

/* Input Groups */
.input-group .form-control {
    border-left: none;
}

.input-group .form-control-color {
    border-right: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mandala-sidebar {
        width: 300px;
    }
    
    .workspace-toolbar {
        padding: 0 1rem;
    }
    
    .canvas-area {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mandala-sidebar {
        position: fixed;
        right: -340px;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s ease;
    }
    
    .mandala-sidebar.show {
        right: 0;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    
    .workspace-toolbar {
        height: 60px;
        padding: 0 0.75rem;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    
    .canvas-area {
        padding: 1rem;
    }
    
    .fab-randomize {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.control-group {
    animation: fadeIn 0.3s ease-out;
}

/* Hover effects for interactive elements */
.form-check-label {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.form-check-label:hover {
    color: white;
}

/* Canvas overlays positioning */
.mandala-guide-canvas,
.mandala-grid-canvas {
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: screen;
}

/* Canvas wrapper for zoom/pan */
#canvas-wrapper {
    position: absolute;
    transform-origin: 0 0;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Premium text styling */
.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.small {
    font-size: 0.875rem;
}

/* Kbd elements */
kbd {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* Button hover glow effects */
.btn-icon:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-info:hover {
    position: relative;
}

.btn-icon:hover::after,
.btn-secondary:hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--mandala-purple), var(--mandala-blue));
    opacity: 0.1;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.05);
    }
}

/* Tooltip-like helper text */
.sidebar-footer small {
    line-height: 1.6;
    display: block;
}

/* Enhanced canvas container with premium shadow */
#canvas-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, 
        rgba(133, 65, 212, 0.15) 0%, 
        transparent 70%);
    z-index: -1;
    opacity: 0.6;
    animation: canvasGlow 3s ease-in-out infinite;
}

@keyframes canvasGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}
/ *   G e n e r a t i o n   L o g   P a n e l   * / 
 
 . g e n e r a t i o n - l o g - p a n e l   { 
 
         p o s i t i o n :   a b s o l u t e ; 
 
         b o t t o m :   2 0 p x ; 
 
         l e f t :   2 0 p x ; 
 
         w i d t h :   3 0 0 p x ; 
 
         m a x - h e i g h t :   2 0 0 p x ; 
 
         b a c k g r o u n d :   r g b a ( 2 2 ,   2 1 ,   2 9 ,   0 . 9 ) ; 
 
         b a c k d r o p - f i l t e r :   b l u r ( 1 0 p x ) ; 
 
         b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
 
         b o r d e r - r a d i u s :   1 2 p x ; 
 
         d i s p l a y :   f l e x ; 
 
         f l e x - d i r e c t i o n :   c o l u m n ; 
 
         z - i n d e x :   1 0 0 ; 
 
         b o x - s h a d o w :   0   8 p x   3 2 p x   r g b a ( 0 ,   0 ,   0 ,   0 . 3 ) ; 
 
         t r a n s i t i o n :   o p a c i t y   0 . 3 s   e a s e ,   t r a n s f o r m   0 . 3 s   e a s e ; 
 
         o p a c i t y :   0 ; 
 
         t r a n s f o r m :   t r a n s l a t e Y ( 2 0 p x ) ; 
 
         p o i n t e r - e v e n t s :   n o n e ;   / *   A l l o w   c l i c k i n g   t h r o u g h   w h e n   h i d d e n   * / 
 
 } 
 
 
 
 . g e n e r a t i o n - l o g - p a n e l . v i s i b l e   { 
 
         o p a c i t y :   1 ; 
 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 
         p o i n t e r - e v e n t s :   a u t o ; 
 
 } 
 
 
 
 . l o g - h e a d e r   { 
 
         p a d d i n g :   1 0 p x   1 5 p x ; 
 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 0 5 ) ; 
 
         b o r d e r - b o t t o m :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
 
         f o n t - s i z e :   0 . 8 5 r e m ; 
 
         f o n t - w e i g h t :   6 0 0 ; 
 
         c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 9 ) ; 
 
         d i s p l a y :   f l e x ; 
 
         a l i g n - i t e m s :   c e n t e r ; 
 
         b o r d e r - t o p - l e f t - r a d i u s :   1 2 p x ; 
 
         b o r d e r - t o p - r i g h t - r a d i u s :   1 2 p x ; 
 
 } 
 
 
 
 . l o g - c o n t e n t   { 
 
         f l e x :   1 ; 
 
         o v e r f l o w - y :   a u t o ; 
 
         p a d d i n g :   1 0 p x   1 5 p x ; 
 
         f o n t - f a m i l y :   ' C o u r i e r   N e w ' ,   m o n o s p a c e ; 
 
         f o n t - s i z e :   0 . 7 5 r e m ; 
 
         c o l o r :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 7 ) ; 
 
         d i s p l a y :   f l e x ; 
 
         f l e x - d i r e c t i o n :   c o l u m n ; 
 
         g a p :   4 p x ; 
 
 } 
 
 
 
 . l o g - e n t r y   { 
 
         a n i m a t i o n :   f a d e I n   0 . 2 s   e a s e - o u t ; 
 
         l i n e - h e i g h t :   1 . 4 ; 
 
 } 
 
 
 
 . l o g - e n t r y . h i g h l i g h t   { 
 
         c o l o r :   v a r ( - - m a n d a l a - p u r p l e ) ; 
 
         f o n t - w e i g h t :   b o l d ; 
 
 } 
 
 
 
 . l o g - e n t r y . i n f o   { 
 
         c o l o r :   v a r ( - - m a n d a l a - b l u e ) ; 
 
 } 
 
 
 
 . l o g - e n t r y . s u c c e s s   { 
 
         c o l o r :   v a r ( - - m a n d a l a - g r e e n ) ; 
 
 } 
 
 
 
 / *   C u s t o m   S c r o l l b a r   f o r   L o g   * / 
 
 . l o g - c o n t e n t : : - w e b k i t - s c r o l l b a r   { 
 
         w i d t h :   4 p x ; 
 
 } 
 
 
 
 . l o g - c o n t e n t : : - w e b k i t - s c r o l l b a r - t r a c k   { 
 
         b a c k g r o u n d :   t r a n s p a r e n t ; 
 
 } 
 
 
 
 . l o g - c o n t e n t : : - w e b k i t - s c r o l l b a r - t h u m b   { 
 
         b a c k g r o u n d :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 2 ) ; 
 
         b o r d e r - r a d i u s :   2 p x ; 
 
 } 
 
 
/* Realtime Status Indicator - Premium iPhone Style */
.realtime-status-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 21, 29, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* High z-index to ensure visibility */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    width: auto;
    min-width: 200px;
    max-width: 90%;
}

.realtime-status-container.visible {
    opacity: 1;
    bottom: 60px; /* Slide up effect */
}

.realtime-status-text {
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .realtime-status-container {
        bottom: 80px; /* Higher on mobile to avoid bottom navs */
        padding: 10px 20px;
        min-width: 180px;
        width: auto;
    }
    
    .realtime-status-container.visible {
        bottom: 90px;
    }
    
    .realtime-status-text {
        font-size: 0.9rem;
    }
}
