/* Vanguard Css  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-image: url('vanlogo.jpg');
    background-size: cover; /* Use 'cover' instead of 'contain' for better background scaling */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0; /* Light grey background in case the image is missing */
    padding: 20px; /* Added padding for better spacing on mobile */
}

/* Login Section */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
    background-image: url('vanlogo.jpg');
    background-size: cover; /* Cover ensures the background image fills the entire screen */
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5; /* Fallback color */
    padding: 20px; /* Padding to ensure the content is not too close to the edges */
}

.login-container {
    background: rgba(255, 255, 255, 0.95); /* Slight transparency for modern look */
    border-radius: 12px; /* Soft rounded corners */
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); /* Elevated shadow for a floating effect */
    text-align: center;
    max-width: 400px; /* Maximum width for better control */
    width: 100%;
    position: relative;
}

.login-container::before {
    content: "";
    background: url('vanlogo.jpg') no-repeat center center;
    background-size: 60px; /* Smaller logo for better scaling */
    width: 60px;
    height: 60px;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
}

/* INPUT GROUP - CLEAN & LARGE STYLE */
.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
}

.input-group input {
    width: 100%;
    padding: 16px 14px; /* Mas malaki at maluwag */
    font-size: 16px;   
    border: 1.8px solid #d0d0d0;
    border-radius: 10px; 
    background-color: #fafafa;
    color: #333;
    transition: all 0.25s ease-in-out;
}

.input-group input:focus {
    border-color: #007bff;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* LABEL – FLOATING EFFECT */
.input-group label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 0 4px;
    color: #666;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.25s ease-in-out;
}

/* Kapag may laman or naka-focus — aangat yung label */
.input-group input:not(:placeholder-shown) + label,
.input-group input:focus + label {
    top: -8px;
    left: 10px;
    font-size: 12px;
    color: #007bff;
    background-color: #fff;
    padding: 0 4px;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: 600; /* Slightly bolder text for the button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

.submit-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px); /* Button lifts slightly */
}

.submit-button:active {
    transform: translateY(0); /* Return to normal when clicked */
}

.forgot-password-wrapper {
    text-align: center;
    margin-top: 20px;
}

.forgot-password-wrapper a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.forgot-password-wrapper a:hover {
    color: #0056b3; /* Darker shade on hover */
}

.footer {
    background-color: #2C3E50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
}

.footer p {
    margin: 0;
}

.error-msg {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    background-color: #f8d7da; /* Soft red background for error */
    transition: opacity 0.3s ease-in-out;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .login-section {
        padding: 10px;
    }

    .login-container {
        padding: 20px;
        max-width: 350px; /* Narrower form for small screens */
    }

    .input-field {
        font-size: 14px;
        padding: 12px;
    }

    .submit-button {
        font-size: 15px;
        padding: 12px;
    }
}


@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 25px;
    }

    .login-container::before {
        background-size: 60px;
        width: 60px;
        height: 60px;
        top: -40px;
        left: calc(50% - 30px);
    }

    .submit-button {
        font-size: 15px;
        padding: 12px;
    }

    .input-field {
        font-size: 13px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 20px;
        box-shadow: none;
        border-radius: 8px;
    }

    .login-container::before {
        background-size: 50px;
        width: 50px;
        height: 50px;
        top: -35px;
        left: calc(50% - 25px);
    }

    .submit-button {
        font-size: 14px;
        padding: 10px;
    }

    .input-field {
        font-size: 12px;
        padding: 9px;
    }

    .forgot-password-wrapper a {
        font-size: 13px;
    }
}

/* side bar style */
:root {
    --sidebar-bg: #007bff;
    --sidebar-text: #ecf0f1;
    --main-bg: #f4f6f9;
    --main-text: #2c3e50;
}
body.dark-mode {
    --sidebar-bg: #007bff;
    --sidebar-text: #f5f5f5;
    --main-bg: #121212;
    --main-text: #ffffff;
}
 .sidebar {
            width: 250px;
            background-color: var(--sidebar-bg);
            color: var(--sidebar-text);
            height: 100vh;
            position: fixed;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: width 0.3s;
        }
.sidebar.collapsed {
    width: 60px;
}
.profile-section {
    text-align: center;
    padding: 20px;
}
.profile-picture-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}
.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sidebar-text);
}
.edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #2980b9;
    color: #fff;
    border-radius: 50%;
    padding: 3px 6px;
    text-decoration: none;
    font-size: 12px;
}
.profile-name, .profile-role {
    margin-top: 8px;
    font-size: 14px;
}
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu li a {
    display: block;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 12px 20px;
    transition: background-color 0.3s;
}
.nav-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.toggle-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    cursor: pointer;
}
.toggle-btn:hover {
    background-color: #007bff;
}
.main-content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
}
.sidebar.collapsed + .main-content {
    margin-left: 60px;
}
.module-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.module {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s;
}
body.dark-mode .module {
    background-color: #1f1f1f;
    color: #fff;
}
.module h2 {
    margin-bottom: 10px;
    color: #2980b9;
}
.module a {
    display: block;
    background-color: #2980b9;
    color: #fff;
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    text-decoration: none;
}
.module a:hover {
    background-color: #1f6391;
}
.dark-toggle {
    text-align: center;
    padding: 10px;
    background-color: #007bff;
    cursor: pointer;
}
.dark-toggle:hover {
    background-color: #007bff;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        padding: 15px;
    }

    .profile-picture {
        width: 70px;
        height: 70px;
    }

    .nav-menu li a {
        font-size: 14px;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        height: 100%;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .toggle-btn {
        position: fixed;
        top: 15px;
        left: 15px;
        background-color: #007bff;
        border-radius: 6px;
        padding: 10px;
        color: white;
        z-index: 1100;
    }

    .toggle-btn:hover {
        background-color: #0056b3;
    }

    .dark-toggle {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 15px 10px;
    }

    .profile-picture {
        width: 60px;
        height: 60px;
    }

    .profile-name,
    .profile-role {
        font-size: 13px;
    }

    .module-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .module {
        padding: 10px;
        font-size: 14px;
    }
}