﻿html, body {
    height: 100%;
}

body.sidebar-open {
    overflow: hidden;
}

body {
    font-family: "Segoe UI", system-ui;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1 0 auto;
}

/* ===== HEADER ===== */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 24px;
}

.nav-link {
    color: #111827;
    font-weight: 500;
}

    .nav-link:hover {
        color: #2563eb;
    }

.btn-auth {
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 500;
}

/* ===== SIDEBAR (MOBILE) ===== */
#sidebar {
    width: 260px;
    position: fixed;
    top: 0;
    left: -260px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    border-right: 1px solid #e5e7eb;
    transition: 0.3s;
}

    #sidebar.show {
        left: 0;
    }

    #sidebar .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
    }

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1049;
}

    #overlay.show {
        display: block;
    }

/* ===== FOOTER ===== */
.mg-footer {
    background: #f2f2f2;
    color: #111827;
    font-size: 14px;
    padding: 40px 0 20px;
}

/* Logo text */
.footer-desc {
    color: #374151;
    font-size: 14px;
    max-width: 260px;
}

/* Section titles */
.footer-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

/* Links */
.mg-footer a {
    display: block;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 6px;
    font-weight: 500;
}

    .mg-footer a:hover {
        text-decoration: underline;
    }

/* Contact text */
.mg-footer span {
    color: #374151;
    font-size: 14px;
}

/* FULL WIDTH HR */
.footer-line {
    border-top: 1.5px solid #d1d5db;
    margin: 24px -3rem 12px; /* left-right touch */
}

/* Copyright */
.footer-copy {
    color: #6b7280;
    font-size: 13px;
}

/* ================= SEARCH BAR ================= */
.mg-search {
    max-width: 420px;
    width: 100%;
}

    .mg-search .form-control {
        border-radius: 25px 0 0 25px;
        padding-left: 18px;
    }

    .mg-search .btn {
        border-radius: 0 25px 25px 0;
        padding: 0 18px;
    }

/* Mobile full width */
@media (max-width: 991px) {
    .input-group .form-control {
        border-radius: 6px 0 0 6px;
    }

    .input-group .btn {
        border-radius: 0 6px 6px 0;
    }
}

/* ================= WELCOME ALERT ================= */

.welcome-alert {
    background-color: #e6f4ea; /* light green */
    border: 1px solid #b7e1cd;
    color: #1e4620;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .welcome-left i {
        font-size: 16px;
        color: #1e4620;
    }

.welcome-close {
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #1e4620;
    cursor: pointer;
    padding: 0 4px;
}

    .welcome-close:hover {
        opacity: 0.7;
    }

/* ================= MOBILE SUPPORT ================= */
@media (max-width: 768px) {
    .welcome-alert {
        font-size: 13px;
        padding: 10px 12px;
    }
}

