* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #d5ede0;
background: linear-gradient(284deg, rgba(213, 237, 224, 1) 0%, rgba(144, 245, 186, 1) 75%);
    color: #2f2f2f;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: #d5ede0;
background: linear-gradient(222deg, rgba(213, 237, 224, 1) 0%, rgba(144, 245, 186, 1) 75%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 100%;
}

nav .nav-left,
nav .nav-right {
    display: flex;
    gap: 40px;
    align-items: center;
    flex: 1;
}

nav .nav-left {
    justify-content: flex-end;
    padding-right: 60px;
}

nav .nav-right {
    justify-content: flex-start;
    padding-left: 60px;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

nav .logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

nav .logo img {
    height: 40px;
    width: 40px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    position: relative;
    padding: 50px;
    background: #d5ede0;
   background: linear-gradient(222deg, rgba(213, 237, 224, 1) 0%, rgba(144, 245, 186, 1) 75%);
}

.hero img.background-img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: auto;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    margin-left: 50%;
    transform: translateX(50px);
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.1;
}

.hero p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-buttons a {
    padding: 12px 25px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    background: #388e3c;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons a:hover {
    background: #2e7d32;
    color: #fff;
}

.page2 {
    min-height: 100vh;
   background: #d5ede0;
background: linear-gradient(284deg, rgba(213, 237, 224, 1) 0%, rgba(144, 245, 186, 1) 75%);
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.homepage-title {
    font-size: -webkit-xxx-large;
    margin-bottom: 30px;
    text-align: center;
    color: #2f2f2f;
}

.content-page {
    min-height: 100vh;
    background: #d5ede0;
background: linear-gradient(284deg, rgba(213, 237, 224, 1) 0%, rgba(144, 245, 186, 1) 75%);
    padding: 100px 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-container {
    max-width: 1200px;
    width: 100%;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2f2f2f;
}

.back-btn {
    display: inline-block;
    margin: 0 auto 40px;
    padding: 10px 25px;
    background: #4da6ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.back-btn:hover {
    background: #3399ff;
    transform: translateY(-2px);
    color: white;
}

.page-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
    width: 100%;

    .content-card {
        background: white;
        border-radius: 16px;
        padding: 25px;
        text-align: center;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s, box-shadow 0.3s;
        flex: 1 1 280px;
        max-width: 350px;
        display: flex;
        flex-direction: column;
    }

    transition: transform 0.3s,
    box-shadow 0.3s;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.content-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.content-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.content-btn {
    padding: 10px 20px;
    background: #4da6ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: auto;
}



.content-btn:hover {
    background: #3399ff;
}

footer {
    background: #e0e0e0;
    text-align: center;
    padding: 20px 0;
    color: #555;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    nav .nav-left,
    nav .nav-right {
        width: 100%;
        justify-content: center;
        padding: 0;
        gap: 15px;
        flex-wrap: wrap;
    }

    .hero {
        flex-direction: column;
        padding: 80px 20px 40px;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        margin: 0;
        transform: none;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .page2,
    .content-page {
        padding: 40px 15px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-grid {
        grid-template-columns: 1fr;
    }

    /* Table Responsiveness */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ffffff;
    z-index: 101;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #203322;
    padding-top: 80px;
    flex-direction: column;
    gap: 20px;
    transition: right 0.3s ease;
    z-index: 100;
}

.mobile-menu.active {
    display: flex;
    right: 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {

    .nav-left,
    .nav-right {
        display: none !important;
    }

    .hamburger {
        display: block;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.login-modal {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-modal h2 {
    margin-bottom: 20px;
    color: #2f2f2f;
    text-align: center;
}

.login-modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-modal input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.login-modal input:focus {
    outline: none;
    border-color: #388e3c;
}

.login-modal button {
    padding: 12px;
    background: #388e3c;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.login-modal button:hover {
    background: #2e7d32;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #555;
}

/* ================= MOBILE RESPONSIVENESS ================= */

.hamburger {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: #1a2a1c;
    /* Slightly darker for better contrast */
    padding: 100px 20px 20px;
    /* More top padding for hamburger clearance */
    flex-direction: column;
    gap: 10px;
    transition: 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    display: flex;
    right: 0;
}

.mobile-menu a {
    color: white !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 12px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.08);
    display: block;
    width: 100%;
    text-align: left;
    border: none !important;
    /* Remove any potential borders */
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(-5px);
    /* Subtle slide effect */
}

@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }

    nav .nav-left,
    nav .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
		margin-left: auto;
    }

    .hero {
        flex-direction: column;
        /* Text first, image below */
        padding: 60px 20px;
        text-align: center;
        justify-content: flex-start;
        min-height: auto;
        background: #d5ede0;
background: linear-gradient(222deg, rgba(213, 237, 224, 1) 0%, rgba(144, 245, 186, 1) 75%);
        /* Simpler bg for mobile */
    }

    .hero img.background-img {
        position: relative;
        height: auto;
        width: 100%;
        max-width: 300px;
        /* Smaller image for mobile */
        margin: 30px auto 0;
        /* Center and add gap */
        display: block;
        opacity: 0.9;
        z-index: 1;
        transform: none;
        left: unset;
        top: unset;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
        z-index: 2;
        position: relative;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* Grids */
    .page-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .homepage-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {

    .nav-left,
    .nav-right {
        display: none;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }
}

