/* VisionLogic AI - Global Stylesheet
   Synchronized with Figma Design System & Fluid Typography
   Note: Optimized for auto-scaling and responsive zoom levels.
*/

@import url('https://fonts.googleapis.com/css2?family=Domine:wght@700&family=Poppins:wght@300;400;600;700&display=swap');

/* --- Root & Body Setup --- */
:root {
    /* Define a fluid base spacing unit that scales with the screen */
    --fluid-padding: clamp(1rem, 5vw, 3rem);
}

body {
    margin: 0;
    padding: 0;
    /* Primary dark background color */
    background-color: #0B0E14 !important;
    font-family: 'Poppins', sans-serif;
    color: white;
    -webkit-font-smoothing: antialiased;
    /* Ensure content height is never less than the screen */
    min-height: 100vh;
}

/* --- Component Specific Backgrounds --- */

/* Footer: Swapped to #111827 
   The box-shadow trick ensures the background stretches 
   behind the sidebar's rounded corners during zoom.
*/
footer {
    background-color: #111827 !important;
    position: relative;
    /* This shadow fills the gap created by sidebar's 'ml-24' 
       and handles responsive width expansion. */
    box-shadow: -100vw 0 0 0 #111827; 
}

/* Ensure the main container doesn't clip the background shadow during scaling */
main {
    overflow: visible !important; 
}

/* --- Utilities --- */
.smooth {
    /* Snappy but smooth transition for better UX feel */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal Transition Utility */
.modal-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Prevent 3D Robot Canvas from blocking UI interactions while remaining responsive */
#robot-canvas {
    pointer-events: none;
    max-width: 100vw;
}

/* --- Button Styles --- */
.btn-gradient-flow {
    background-size: 200% auto;
    background-image: linear-gradient(to right, #00F2FE 0%, #7064FF 50%, #00F2FE 100%);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gradient-flow:hover {
    background-position: right center;
}

/* --- Form Input Styles --- */
input,
textarea {
    outline: none;
    font-family: inherit;
}

/* Input Glow Style:
   - Background: Swapped to #0B0E14 (to contrast with #111827 Footer)
   - Border: Cybercyan (#00F2FE)
*/
.input-glow {
    background-color: #1F2937; /* Corrected to Primary Dark to match Focus state */
    border: 1px solid #00F2FE; 
    transition: all 0.3s ease;
}

.input-glow:focus {
    /* Using transparent border to reveal the gradient underneath */
    border: 1px solid transparent; 
    
    /* Dual gradient: Inner background + Border gradient */
    background-image: 
        linear-gradient(#0B0E14, #0B0E14), 
        linear-gradient(to right, #00F2FE, #7064FF);
    
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    /* Dynamic glow effect that scales visually */
    box-shadow: 0 0 clamp(8px, 1.5vw, 20px) rgba(0, 242, 254, 0.3);
}

/* --- Custom Scrollbar: Precision Styling --- */
::-webkit-scrollbar {
    width: clamp(6px, 0.5vw, 10px);
}

::-webkit-scrollbar-track {
    background: #0B0E14;
}

::-webkit-scrollbar-thumb {
    background: #1F2937;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7064FF;
}

/* --- Responsive Layout Utilities --- */
@media (max-width: 768px) {
    /* Adjust sidebar offset for smaller scales or mobile */
    footer {
        box-shadow: none;
        margin-left: 0 !important;
        padding-left: 1rem !important;
        width: 100% !important;
    }
}