﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mut-green: #1a5632;
    --mut-green-mid: #2e7d4f;
    --mut-green-soft: #e9f3ee;
    --mut-accent: #98FB98;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    color: #1f2937;
    line-height: 1.6;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

    .loading img {
        max-width: 80px;
        max-height: 80px;
        border-radius: 50%;
    }

    .loading.hidden {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

/* Header */
.header {
    background-color: var(--mut-accent);
    color: #1f2937;
    box-shadow: 0 2px 10px rgba(16, 40, 28, 0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .logo-section img {
        height: 44px;
        width: 44px;
        border-radius: 50%;
        object-fit: cover;
        background: #fff;
        border: 2px solid rgba(255, 255, 255, 0.85);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.portal-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1f2937;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
}

    .nav-links a {
        color: #1f2937;
        text-decoration: none;
        font-weight: 500;
        padding: 8px 16px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-links a:hover {
            background: rgba(255, 255, 255, 0.55);
        }

        .nav-links a.active {
            background: rgba(255, 255, 255, 0.65);
            color: var(--mut-green);
        }

/* User Menu */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

    .user-menu:hover {
        background: rgba(255, 255, 255, 0.55);
    }

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mut-green);
}

.user-name {
    font-weight: 500;
    color: #1f2937;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #1f2937;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 40, 28, 0.14);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        color: #1f2937;
        text-decoration: none;
        transition: background 0.3s ease;
    }

        .dropdown-menu a:hover {
            background: var(--mut-green-soft);
            color: var(--mut-green);
        }

        .dropdown-menu a:first-child {
            border-radius: 12px 12px 0 0;
        }

        .dropdown-menu a:last-child {
            border-radius: 0 0 12px 12px;
            border-top: 1px solid #e9ecef;
            color: #e74c3c;
        }

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #1f2937;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    border: none;
    font-size: 14px;
}

.alert-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
}

.alert .close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    line-height: 1;
}

    .alert .close:hover {
        opacity: 1;
    }

/* Footer */
.footer {
    background: #14472a;
    color: #cdd9d2;
    text-align: center;
    padding: 15px 20px;
    border-top: 3px solid var(--mut-accent);
}

    .footer a {
        color: var(--mut-accent);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .footer a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 15px 20px;
    }

    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--mut-accent);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

        .navbar.show {
            display: flex;
        }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

        .nav-links a {
            padding: 12px 20px;
            text-align: center;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
        }

    .mobile-toggle {
        display: block;
    }

    .portal-title {
        font-size: 18px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .user-menu {
        order: -1;
    }
}

@media (max-width: 480px) {
    .logo-section {
        gap: 10px;
    }

        .logo-section img {
            height: 40px;
        }

    .portal-title {
        font-size: 16px;
    }

    .header-content {
        padding: 10px 15px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb */
.breadcrumb {
    background: white;
    padding: 15px 0;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0 20px;
}

    .breadcrumb-list li {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .breadcrumb-list a {
        color: var(--mut-green);
        text-decoration: none;
        font-weight: 500;
    }

        .breadcrumb-list a:hover {
            text-decoration: underline;
        }

.breadcrumb-separator {
    color: #6c757d;
}

