/* assets/css/style.css */

/* --- 1. THEME VARIABLES (Darkroom) --- */
:root {
    --bg-body: #121212;        /* Deep Black/Grey */
    --bg-panel: #1E1E1E;       /* Slightly lighter for the form panel */
    --bg-input: #2C2C2C;       /* Input fields */
    
    --primary-hover: #f08b07;        /* Teal - The Main Brand Color */
    --primary: #ff7215;
    --accent: #d35400;
    
    --text-main: #E0E0E0;      /* Off-white */
    --text-muted: #A0A0A0;     /* Grey */
    --border: #333333;
    
    --font-main:   'Trebuchet MS';
    --radius: 5px;
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }


body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    height: 100vh;
    display: flex; /* Flexbox for the split layout */
    overflow-y: auto; /* Prevent scroll on login page */
    
}

/* --- 3. SPLIT LAYOUT UTILITIES --- */
.split-screen {
    display: flex;
    width: 100%;
    height: 100%;
   
}

/* Left Side: The Image */
.split-image {
    flex: 1.5; /* Takes up 60% of width */
    background-image: url('../images/login-bg.jpg'); /* You need to put an image here */
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Overlay to darken image slightly */
.split-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(18,18,18,0.3), rgba(18,18,18,1));
}

/* Right Side: The Form */
.split-form {
    flex: 1; /* Takes up 40% of width */
    background-color: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2; /* Sits above the image fade */
}

/* --- 4. FORM STYLING --- */
.login-container {
    width: 100%;
    max-width: 400px;
}

.brand-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.brand-tagline {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 5px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #fff;
    font-size: .8rem;
    transition: 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 173, 181, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 10px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.form-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* assets/css/style.css - NAVIGATION STYLES */

/* --- 1. DESKTOP SIDEBAR (Default Visible) --- */
.sidebar {
    width: 250px;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0; top: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0; /* Reset default UL margin */
}

.nav-item a {
    display: flex;
    align-items: center;
    padding: 9px 25px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.nav-item a:hover, .nav-item a.active {
    background-color: rgba(255, 114, 21, 0.1);
    color: #fff;
    border-left-color: var(--primary);
}

.nav-item a i { width: 25px; }

.user-mini-profile {
    margin-top: auto; /* Push to bottom */
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background-color: var(--bg-input);
    object-fit: cover;
}

/* --- 2. HIDE MOBILE NAV ON DESKTOP --- */
.mobile-bottom-nav { 
    display: none; 
}


/* --- MOBILE OPTIMIZATION (Max Width 768px) --- */
@media (max-width: 768px) {

    /* 1. Layout Reset */
    body {
        display: block; /* Remove flex sidebar layout */
        padding-bottom: 70px; /* Space for bottom nav */
    }

    /* 2. Hide Desktop Sidebar */
    .sidebar {
        display: none;
    }

    /* 3. Adjust Main Content */
    .main-content {
        margin-left: 0; /* Remove sidebar gap */
        width: 100%;
        padding: 20px;
        padding-bottom: 80px;
    }

    /* 4. Login Page Tweak */
    .split-image { display: none; }
    .split-form { width: 100%; padding: 20px; }
    .login-container { margin-top: 40px; }

    /* 5. Dashboard Grids */
    .stats-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns instead of 1 long column */
        gap: 15px;
    }

    /* 6. Form Grids (Register Page) */
    .form-grid {
        grid-template-columns: 1fr !important; /* Stack inputs */
    }
    .full-width { grid-column: span 1 !important; }

    /* 7. Typography fixes */
    h1 { font-size: 1.5rem; }
    .stat-card h3 { font-size: 1.5rem; }

    /* 8. ID Card Widget Mobile */
    .id-card-widget {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .id-card-widget .btn-primary {
        width: 100%;
    }

    .sidebar { display: none; }

    /* Show Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        height: 65px;
        background-color: var(--bg-panel);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.7rem;
        flex: 1;
    }

    .mobile-nav-item i {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .mobile-nav-item.active {
        color: var(--primary);
    }
}