/* Basic Resets and Body Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    height: 100%;
    display: flex;
    justify-content: flex-start; /* Align content to the left */
    align-items: flex-start;  /* Align content to the top */
    background: #F8F8F7; /* Light, warm gray background */
    color: #2C2C2E; /* Dark gray text color */
}

/* Styling for Landing Container on Home Page */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    text-align: center;
}

.welcome-section {
    width: 90%;
    max-width: 600px;
}

.logo img {
    width: 120px;
    margin-bottom: 20px;
}

h1, p {
    margin-bottom: 1.5em;
}

/* Call-to-Action Button Styling */
.cta-btn {
    padding: 12px 24px;
    font-size: 1.1em;
    background-color: #A1C4D5; /* Soft, pastel blue-gray for modern feel */
    color: #FFFFFF; /* White text */
    border: none;
    border-radius: 8px; /* Rounded corners */
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Subtle shadow */
    transition: background-color 0.3s, transform 0.3s;
}

.cta-btn:hover {
    background-color: #88A9B0; /* Slightly darker gray-blue */
    transform: translateY(-2px); /* Smooth lift effect */
}

/* Login Container and Form Styling */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: #FFFFFF; /* White background for the form */
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); /* Soft shadow for a clean, elevated look */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-group {
    width: 90%;
    position: relative;
    margin-bottom: 20px;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #D1D1D6; /* Subtle light gray border */
    border-radius: 10px;
    background-color: #F5F5F7; /* Light, soft background for input fields */
    color: #2C2C2E; /* Dark gray text */
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #B5B5B5; /* Slightly darker gray for focus state */
    outline: none;
}

label {
    color: #6E6E73; /* Soft gray color for labels */
    position: absolute;
    left: 10px;
    top: -14px;
    background: #FFFFFF;
    padding: 0 5px;
    transition: all 0.3s;
}

input:focus + label {
    color: #A1C4D5; /* Modern pastel for active focus state */
}

/* Login Button Styling */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #8E8E93; /* Soft gray with a hint of purple for modern aesthetic */
    color: #FFFFFF;
    border-radius: 12px; /* Rounded corners for a smooth look */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.login-btn:hover {
    background-color: #636366; /* Darker gray when hovered */
    transform: translateY(-2px); /* Smooth hover effect */
}

/* Alert Styling */
.alert {
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: #FAD2D2; /* Light pinkish hue for alerts */
    color: #D8000C; /* Dark red for text */
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #FF5C5C;
}

/* Sidebar Styling for mobile and desktop */
.sidebar {
    position: fixed;
    height: 100%;
    width: 0; /* Start hidden */
    background: #FFFFFF; /* White background for sidebar */
    overflow-x: hidden;
    transition: 0.3s; /* Smooth transition for opening and closing */
    top: 0;
    left: 0;
    z-index: 1000;
}

.sidebar a {
    padding: 14px 18px;
    text-decoration: none;
    font-size: 18px;
    color: #2C2C2E; /* Dark gray text for links */
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #F1F1F1; /* Soft gray hover effect */
}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: #2C2C2E;
}

@media (min-width: 768px) {
    .sidebar {
        width: 250px; /* Fixed width for desktop */
    }

    .main-content {
        margin-left: 250px; /* Content pushed aside by sidebar */
    }

    .menu {
        display: flex;
        align-items: center;
    }

    .menu-icon {
        display: block; /* Show menu icon in mobile view */
    }
}

@media (max-width: 767px) {
    .sidebar {
        width: 250px; /* Sidebar full width on mobile */
    }

    .sidebar.active {
        width: 250px; /* Same width when active */
    }

    .menu-icon {
        display: block; /* Always show menu icon on small screens */
    }

    .menu {
        display: none; /* Hide menu initially on small screens */
    }

    .main-content {
        margin-left: 0; /* Remove left margin on small screens */
    }
}/* Sidebar Styling for mobile and desktop */
.sidebar {
    position: fixed;
    height: 100%;
    width: 250px; /* Set the sidebar width */
    background: #FFFFFF; /* White background for sidebar */
    overflow-x: hidden;
    transition: 0.3s; /* Smooth transition for opening and closing */
    top: 0;
    left: -250px; /* Start hidden */
    z-index: 1000;
    padding-top: 20px;
}

.sidebar.active {
    left: 0; /* Show the sidebar when active */
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
}

.sidebar .logo img {
    width: 50px; /* Adjust logo size */
    height: 50px;
}

.sidebar .logo h2 {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}

/* Sidebar Menu */
.sidebar a {
    padding: 14px 18px;
    text-decoration: none;
    font-size: 18px;
    color: #2C2C2E; /* Dark gray text for links */
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.sidebar a i {
    margin-right: 10px; /* Space for the icon */
}

.sidebar a:hover {
    background-color: #F1F1F1; /* Soft gray hover effect */
}

.sidebar .logout-btn {
    color: #D8000C; /* Red color for logout */
}

/* Menu icon for mobile view */
.menu-icon {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: #2C2C2E;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

.close-icon {
    display: none; /* Hide close icon initially */
    font-size: 30px;
    cursor: pointer;
    color: #2C2C2E;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        left: -250px; /* Hide sidebar initially on mobile */
    }

    .sidebar.active {
        left: 0; /* Show sidebar when active */
    }

    .menu-icon {
        display: block; /* Always show menu icon on small screens */
    }

    .close-icon {
        display: none; /* Hide close icon on mobile */
    }

    .menu {
        display: none; /* Hide menu initially on small screens */
    }

    .main-content {
        margin-left: 0; /* Remove margin when sidebar is hidden */
    }
}

