﻿/* ========== GLOBAL SETTINGS ========== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html, body {
    position: relative;
    min-height: 100%;
    margin-bottom: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* 🔒 Prevent horizontal scroll */
    background: linear-gradient(to bottom, #e3f2fd, #ffffff);
}

h2, h3, h4 {
    font-weight: 600;
    color: #2c3e50;
}

.btn-primary-gradient {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    color: white;
    border: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

    .btn-primary-gradient:hover {
        filter: brightness(1.05);
    }

/* ========== TABLE CONTAINER CARD ========== */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

    .table-container:hover {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    }

/* ========== BUTTON FOCUS ========== */
.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;
}

/* ========== TABLE STYLING ========== */
.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    padding: 10px;
}

.table-bordered th,
.table-bordered td {
    border: 3px solid #000;
}

.table-primary {
    background-color: #e3f2fd;
    font-weight: bold;
}

.table th {
    z-index: 1000;
    position: relative;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* ========== DROPDOWN ========== */
.dropdown-menu {
    max-width: 250px; /* 🎯 Keep this small to prevent overflow */
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15) !important;
    z-index: 1050 !important;
    right: 0;
    left: auto !important;
    white-space: nowrap;
}

.dropdown-item {
    padding: 8px 12px;
    white-space: nowrap;
}

.dropdown-menu.show {
    display: block;
    top: 100% !important;
    z-index: 1050 !important;
}

/* ========== NAVBAR & FOOTER ========== */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.active {
    color: #007bff !important;
    font-weight: bold;
}

.footer {
    background-color: #f8f8f8;
    padding: 1rem 2rem;
    text-align: center;
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
    .dropdown-menu {
        min-width: 100%;
        max-width: none;
    }

        .dropdown-menu .row {
            flex-direction: column;
        }
}

/* ✅ Optional: Just keep styles that enhance the look */
/* Target only the Admin dropdown menu */
#adminDropdown + .dropdown-menu {
    min-width: 600px;
    max-width: 90vw;
    left: 0;
    right: auto;
    top: 100%;
}
.legend-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}
form select.form-select {
    min-width: 140px;
}

.btn {
    border-radius: 8px;
}


