.main-sidebar {
    background: linear-gradient(180deg, #2C3076 0%, #1a1d4a 100%) !important;
    border-right: 1px solid var(--gray-200);
    /* box-shadow: 2px 2px 10px 0 rgba(0, 0, 0, 0.1); */
    position: fixed !important;
    top: 0;
    left: 5px;
    height: 100vh;
    z-index: 1050 !important;
    pointer-events: auto !important;
    /* width: 280px; */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-sidebar .sidebar {
    color: white !important;
    pointer-events: auto;
    height: 100%;
    padding-left: 5px;
    overflow-y: auto;
}

.main-sidebar .sidebar a {
    color: white !important;
}

.main-sidebar .sidebar a:hover {
    color: #f8f9fa !important;
}

/* Modern Brand Section */
.main-sidebar .brand-link {
    background: linear-gradient(135deg, #2C3076 0%, #1a1d4a 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: var(--space-6) var(--space-4) !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.main-sidebar .brand-link:hover {
    background: linear-gradient(135deg, #1a1d4a 0%, #2C3076 100%) !important;
    text-decoration: none !important;
}

.main-sidebar .brand-image {
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--radius-lg) !important;
    margin-right: var(--space-3) !important;
    /* box-shadow: var(--shadow-lg) !important; */
    /* border: 2px solid rgba(255, 255, 255, 0.2) !important; */
    opacity: 1 !important;
    max-height: none !important;
}

.main-sidebar .brand-text {
    margin-left: 10px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    letter-spacing: 0.5px;
    /* Remove these properties as they're causing issues */
    /* flex-direction: column;
    justify-content: center; */
}

.main-sidebar .user-panel {
    background-image: url('/template/dist/img/bg1.jpeg');
    background-size: cover !important;
    /* Shows full image */
    background-position: center !important;
    /* Shows mountain peaks */
    height: 100px;
    /* Fixed height */
    background-repeat: no-repeat !important;
    margin: 0 !important;
    padding: var(--space-6) var(--space-4) !important;
    display: flex !important;
    width: calc(100% + 20px);
    /* Extend the width to cover any gaps (no changes) */
    display: flex;
    /* Flexbox for alignment (no changes) */
    flex-direction: row;
    align-items: center;
    /* Center the content */
    text-align: center;
    position: relative;
    /* For positioning context (no changes) */
    left: -5px;
    /* Adjust position to eliminate any remaining gap */
}

.main-sidebar .user-panel > * {
    position: relative;
    z-index: 1;
}

.main-sidebar .user-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    opacity: 0.5; /* Adjust this value (0.0 - 1.0) for desired opacity */
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}


/* User panel styles */

.main-sidebar .user-panel .image {
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 0;
}

.main-sidebar .user-panel .image img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 3px solid white !important;
  box-shadow: var(--shadow-lg) !important;
  object-fit: cover !important;
}

.main-sidebar .user-panel .info {
    margin: 0;
    padding: 0;
    min-width: 0;      /* <-- Required for flex children to truncate */
    text-align: left;
}

.main-sidebar .user-panel .info a {
    color: white !important;
    font-size: 16px;
    font-weight: 500;
    display: block;
    max-width: 120px;  /* <-- Truncate at this width */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Login page background */
.login-page {
    position: relative;
    background-image: url('/template/dist/img/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Login box styles | adjustment 6*/
.login-box {
    position: relative;
    /* Ensure it is positioned relative to the page */
    z-index: 2;
    /* Higher than the ::before pseudo-element */
    background-color: white;
    /* Solid background for the login box */
    border-radius: 5px;
    /* Optional: Add rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Optional: Add a shadow for better visibility */
    width: 360px;
    /* Default width */
    margin: 7% auto;
    /* Center the box */
    padding: 20px;
    /* Add padding inside the box */
}

.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    /* Add this to ensure elements are clickable */
}

/* Logo and title styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    /* Reduce bottom padding from 20px to 10px */
    margin-bottom: 10px;
    /* Reduce from 5px to 0 */
    /* padding: 10px;
    margin-bottom: 10px; */
}

.logo-img {
    height: 100px;
    margin-right: 15px;
    align-self: center;
    /* Ensures the logo stays vertically centered */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*Centers the text block vertically */
}

.logo-title {
    font-size: 52px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0;
}

.logo-subtitle {
    font-size: 20px;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

/* Form element styles */
.form-label {
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 12px;
}

.form-group {
    margin-top: 0;
    /* Ensure no extra top margin is added */
}

.input-group {
    margin-bottom: 15px;
}

.input-group .form-control {
    border-radius: 4px;
    padding-left: 15px;
    transition: all 0.3s;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* adjustment 7 */
.input-group:focus-within {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    border-radius: 4px;
}

.input-group-text {
    background-color: #0275d8;
    border-color: #0275d8;
    color: white;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Button styles */
.btn-submit {
    background-color: #0275d8;
    border-color: #0275d8;
    color: white;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-back {
    background: #737373;
    color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-back:hover,
.btn-back:focus {
    background: #e5e7eb;
    color: #111827;
}

.btn-modern-blue {
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.btn-modern-blue:hover,
.btn-modern-blue:focus {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px) scale(1.03);
}

/* Sidebar box shadow */
/* .main-sidebar {
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    margin-left: 10px;
} */

/* Responsive Sidebar and Layout Adjustments */
/* filepath: c:\laragon\www\myqiz1\public\css\app.css */

/* Sidebar scroll for small screens */
/* @media (max-width: 991.98px) {
    .main-sidebar {
        z-index: 4000 !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 220px !important;
        height: 100vh !important;
        overflow-y: auto !important;
        pointer-events: auto !important;
    }
    .sidebar-overlay {
        z-index: 3999 !important;
        pointer-events: auto !important;
    }
    .content-wrapper,
    .main-header,
    .main-footer {
        z-index: 1 !important;
        position: relative !important;
    }
} */

/* Make sidebar collapsible on very small screens */
/* @media (max-width: 767.98px) {
    .main-sidebar {
        width: 100vw !important;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1050;
        pointer-events: auto;
    }
    .main-sidebar .sidebar {
        font-size: 15px;
        pointer-events: auto;
        overflow-y: auto !important; 
        height: 100%; 
        position: relative; 
        z-index: 1060; 
    }
    .main-sidebar .user-panel .image img {
        width: 40px;
        height: 40px;
    }
} */

/* .main-sidebar,
.main-sidebar .sidebar {
    pointer-events: auto;
    z-index: 1050;
} */

/* Responsive card and login box */
/* @media (max-width: 575.98px) {
    .card,
    .login-box {
        width: 98vw !important;
        min-width: unset;
        padding: 10px;
        margin: 10px auto;
    }
    .logo-title {
        font-size: 32px;
    }
    .logo-subtitle {
        font-size: 14px;
    }
    .main-sidebar .brand-text {
        font-size: 18px;
    }
} */

/* Responsive table */
/* .table-responsive {
    overflow-x: auto;
} */

/* Responsive logo */
/* .logo-img {
    max-width: 70vw;
    height: auto;
} */

/* Responsive font size for sidebar links */
/* @media (max-width: 400px) {
    .main-sidebar .sidebar a,
    .main-sidebar .user-panel .info a {
        font-size: 13px;
    }
} */