/* ========== Base HTML / Body ========== */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #f6f7fb;
    color: #222;
    padding-top: 70px; 
}


a {
    text-decoration: none;
}


.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.navbar {
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand .brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #e6f7ef;
    color: #13795b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.nav-link {
    font-weight: 500;
    color: #4b5563 !important;
}

    .nav-link.active,
    .nav-link:hover {
        color: #13795b !important;
    }

/* ========== Layout: Sidebar + Main ========== */
.app-shell {
    display: flex;
    min-height: calc(100vh - 110px); /* screen minus navbar+footer */
}

.app-main {
    min-height: calc(100vh - 110px);
    padding-top: 0.5rem;
}

.app-footer {
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

/* Sidebar */
.app-sidebar {
    width: 230px;
    background: #0f172a;
    color: #e5e7eb;
    padding: 1rem 0.75rem;
}

.sidebar-inner {
    width: 100%;
}

.sidebar-section {
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.sidebar-link {
    color: #e5e7eb !important;
    border-radius: 0.6rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
}

    .sidebar-link i {
        width: 18px;
        text-align: center;
    }

    .sidebar-link:hover {
        background-color: #111827;
        color: #ffffff !important;
    }

    .sidebar-link.active {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #ffffff !important;
    }

/* ========== Cards & Tables ========== */
.card {
    border-radius: 0.80rem;
    border: 1px solid #e5e7eb;
}

.card-header {
    font-weight: 600;
    font-size: 0.95rem;
}

.table {
    font-size: 0.9rem;
}

    .table th {
        background: #e6f7ef;
        color: #13795b;
        font-weight: 600;
        border-bottom-width: 1px;
    }

    .table tbody tr:hover {
        background-color: #f9fafb;
    }

/* ========== Buttons / Icons ========== */
.btn-action {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 999px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-bs-toggle="tooltip"] {
    cursor: pointer;
}

.btn-save {
    background-color: #13795b;
    border-color: #13795b;
    color: #fff;
}

    .btn-save:hover {
        background-color: #0f5f47;
        border-color: #0f5f47;
    }

/* Button hover micro animations (e.g., in .action-group) */
.action-group .btn {
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.1s ease;
}

    .action-group .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    }

/* ========== Form elements ========== */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border-radius: 0.6rem;
    border-color: #d1d5db;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #13795b;
        box-shadow: 0 0 0 0.15rem rgba(19, 121, 91, 0.16);
    }

/* Date input */
input[type="date"] {
    font-size: 0.9rem;
}

    input[type="date"]::-webkit-calendar-picker-indicator {
        cursor: pointer;
    }


.badge-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    background-color: #e5f3ff;
    color: #1d4ed8;
    font-weight: 500;
}

.tooltip-inner {
    background-color: #111827;
    color: #f9fafb;
    font-size: 0.75rem;
    padding: 6px 8px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
    border-top-color: #111827;
}

/* ========== Auth Pages (Login / Register) ========== */
.auth-page-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
}

/* ========== Password eye toggle (Login) ========== */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: #6b7280;
}

    .password-toggle:hover {
        color: #111827;
    }

/* ===== ORANGE NAVBAR OVERRIDE ===== */
.navbar.bg-success {
    background-color: #e36a3f !important; /* ORANGE */
}

    /* Navbar brand text */
    .navbar.bg-success .navbar-brand {
        color: #ffffff !important;
    }

    /* Login button (outline) */
    .navbar.bg-success .btn-outline-light {
        border-color: #ffffff;
        color: #ffffff;
    }

        .navbar.bg-success .btn-outline-light:hover {
            background-color: #ffffff;
            color: #f97316;
        }

    /* Register button */
    .navbar.bg-success .btn-warning {
        background-color: #799297;
        border-color: #ffb703;
        color: #fff;
    }

        .navbar.bg-success .btn-warning:hover {
            background-color: #e5e7eb;
            border-color: #ffa000;
            color: #000;
        }





.auth-card {
    max-width: 520px;
    margin: 60px auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    animation: fadeUp 0.6s ease;
}

    
    .auth-card h4 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 25px;
        color: #306265 !important; 
    }

    
    .auth-card .form-control {
        height: 48px;
        border-radius: 10px;
        border: 1px solid #dcdcdc;
        padding: 10px 14px;
        font-size: 15px;
        transition: all 0.25s ease;
    }

        .auth-card .form-control:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 3px rgba(249,115,22,0.25);
        }

    /* Labels */
    .auth-card label {
        font-weight: 700;
        margin-bottom: 6px;
        color: #4c6a70;
    }

/* ===== PASSWORD EYE ICON ===== */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

    .password-toggle:hover {
        color: #f97316;
    }

/* ===== LOGIN BUTTON ===== */
.auth-card .btn-success {
    height: 48px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background-color: #54747b;
    border-color: #54747b;
    transition: all 0.25s ease;
}

    .auth-card .btn-success:hover {
        background-color: #54747b;
        border-color: #54747b;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(249,115,22,0.35);
    }

/* ===== LINKS ===== */
.auth-card a {
    font-size: 14px;
    color: #ad6c3f;
    text-decoration: none;
    font-weight: 500;
}

    .auth-card a:hover {
        text-decoration: underline;
    }

/* ===== ALERTS ===== */
.alert {
    border-radius: 10px;
    font-size: 14px;
}

/* ===== MODALS ===== */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .auth-card {
        margin: 30px 15px;
        padding: 30px 20px;
    }
}










body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: #f9fafb;
    color: #111827;
}

/* HEADER */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .logo img {
        height: 42px;
    }

.logo-text span {
    font-size: 12px;
    color: #6b7280;
}

.nav-links a {
    margin-left: 22px;
    text-decoration: none;
    color: #111827;
    font-weight: 500;
}

.nav-links .btn-primary {
    padding: 8px 14px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
}

/* FOOTER */
.main-footer {
    background: #111827;
    color: #9ca3af;
    padding: 60px 20px 30px;
}

.footer-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

    .footer-grid h4 {
        color: #ffffff;
        margin-bottom: 14px;
    }

    .footer-grid a {
        display: block;
        color: #9ca3af;
        text-decoration: none;
        margin-bottom: 8px;
    }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
}
