html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Fixed Navbar */
.navbar-fixed-custom {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 70px; /* Adjust based on navbar height */
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }
}

/* Main content wrapper */
main {
    flex: 1; /* This makes main content grow and push footer down */
    display: flex;
    flex-direction: column;
}

    main
    /* Footer stays at bottom */
    footer {
        flex-shrink: 0; /* Prevents footer from shrinking */
        width: 100%;
        margin-top: auto;
    }

/* Navbar styling */
.navbar-custom {
    background: linear-gradient(135deg, #2E6E1E 0%,#60944A 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .navbar-brand i {
        font-size: 1.8rem;
    }

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
}

    .navbar-custom .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: white !important;
    }

    .navbar-custom .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: white !important;
    }

.btn-login {
    /*    background-color: #2563EB;
    color: #2563EB;*/
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-login:hover {
        background-color: #f59e0b;
        color: white;
        transform: translateY(-2px);
        text-decoration: none;
    }

.btn-logout {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-logout:hover {
        background-color: white;
        color: #2563eb;
        text-decoration: none;
    }

/* Footer styling */
.footer-custom {
    background: linear-gradient(135deg, #4b6220 100%);
    color: white;
    padding: 3rem 0 0 0;
    margin-top: 2rem;
    width: 100%;
}

    .footer-custom a {
        color: #0ea5e9;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .footer-custom a:hover {
            color: #f59e0b;
            text-decoration: none;
        }

.footer-section h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: #0ea5e9;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: #f59e0b;
            }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    /*    margin-top: 2rem;
*/ text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Page content padding */
.page-content {
    padding: 2rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-custom .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .footer-custom {
        padding: 2rem 0 1rem 0;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
}
