/* 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 */
    }
}/* Make the page fill the viewport */
html, body {
  height: 100%;
}

body {
  margin: 0;
  /* Center the top-level container */
  display: grid;
  place-items: center;        /* centers horizontally + vertically */
  background: #0f1b2d;        /* optional bg, remove if not needed */
  color: #fff;                /* optional text color */
}

/* Center the landing container itself (safeguard) */
.landing-container {
  width: 100%;
  min-height: 100vh;          /* full height */
  display: grid;
  place-items: center;        /* centers its child .welcome-section */
  padding: 16px;              /* small padding for mobile edges */
  box-sizing: border-box;
}

/* The content card */
.welcome-section {
  text-align: center;         /* center all text */
  max-width: 720px;           /* keep lines readable */
  padding: 32px 24px;
  background: rgba(255,255,255,0.06); /* optional subtle panel */
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  backdrop-filter: blur(6px); /* optional glass effect */
}

/* Logo centered & sized */
.logo img {
  display: block;
  margin: 0 auto 16px;
  max-width: 140px;
  height: auto;
}

/* Headings and paragraphs spacing */
.welcome-section h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}

.welcome-section p {
  margin: 6px 0;
  color: #d9e2f1;            /* softer text */
}

/* Call-to-action button centered */
.cta-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 22px;
  background: #3b82f6;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.cta-btn:hover { background: #2563eb; box-shadow: 0 6px 20px rgba(59,130,246,.35); }
.cta-btn:active { transform: translateY(1px); }


