/* assets/css/style.css */
body {
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background: #343a40;
    z-index: 1040;
    padding-top: 0;
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar-brand {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #212529;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    text-decoration: none;
}
.sidebar-brand:hover {
    color: #fff;
}

.sidebar .list-group-item {
    background: transparent;
    color: #ced4da;
    border: none;
    transition: all 0.2s;
}

.sidebar .list-group-item:hover, 
.sidebar .list-group-item.active {
    background: #495057;
    color: #ffffff;
}

.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

/* Navbar Styles */
.navbar.fixed-top {
    left: 250px;
    width: calc(100% - 250px);
    transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
    z-index: 1030;
    height: 60px;
}

.sidebar-collapsed .navbar.fixed-top {
    left: 0;
    width: 100%;
}

/* Main Content Styles */
.main-content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px;
    transition: margin-left 0.3s ease-in-out;
}

.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .navbar.fixed-top {
        left: 0;
        width: 100%;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-mobile-open .sidebar {
        transform: translateX(0);
    }
}

/* Form Control Hover */
.form-control:hover { border-color: #007bff; box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); }

/* ==========================================================================
   Beautiful Global Toggle Switches - Right Aligned & Theme Colored
   ========================================================================== */
.form-check.form-switch {
    padding-left: 0;
    margin-bottom: 1rem;
    overflow: hidden; /* Clear floats */
}

/* 1. Hide MDB's floating blue knob completely */
.form-check.form-switch .form-check-input::after,
.form-check.form-switch .form-check-input::before {
    content: none !important;
    display: none !important;
}

/* 2. Style the base input pill (Longer and taller) */
.form-check.form-switch .form-check-input {
    float: right !important;
    margin-left: 1rem !important;
    margin-right: 0 !important;
    margin-top: 0.2rem !important;
    height: 1.6rem !important;
    width: 3.25rem !important; /* Made width longer */
    border-radius: 2rem !important;
    background-color: #d1d5db !important;
    border: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3.5' fill='%23fff'/%3e%3c/svg%3e") !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    transition: background-position .25s ease-in-out, background-color .25s ease-in-out !important;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1) !important;
    -webkit-appearance: none;
    appearance: none;
}

/* 3. Active State (Default Theme Primary Color #0d6efd) */
.form-check.form-switch .form-check-input:checked {
    background-color: #0d6efd !important;
    background-position: right center !important;
}

/* 4. Focus State */
.form-check.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25) !important;
}

/* 5. Label & Text Alignment */
.form-check.form-switch .form-check-label {
    padding-top: 0;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    float: left;
    display: block;
    width: calc(100% - 4.5rem);
}

.form-check.form-switch .form-text {
    clear: both;
    display: block;
    padding-top: 0.25rem;
}
