/* === Layout Basics === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    background-color: #f8f9fa; /* light background for light mode */
    color: #212529;
}

body {
    display: flex;
    flex-direction: column;
}

/* Sticky footer helper */
.sticky-footer {
    margin-top: auto;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* === Links === */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline;
}

/* === Buttons === */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}

.btn-dark:hover {
    background-color: #23272b;
    border-color: #1d2124;
}

/* === Form Inputs === */
.form-control {
    border-radius: 0.25rem;
}

/* === Card styling === */
.card {
    border-radius: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}

/* === Footer === */
footer.fixed-bottom, footer.sticky-footer {
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}
/* Mobile Footer Buttons Full Section */
.mobile-footer-btn {
    display: block;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.mobile-footer-btn:hover {
    background-color: #f0f0f0;
    color: #000;
}
.mobile-footer-btn.active {
    background-color: #212529;
    color: #fff;
}
.mobile-footer-btn i {
    display: block;
    margin-bottom: 2px;
}
/* === Utility === */
.text-center {
    text-align: center !important;
}

/* === Dark Mode Example === */
body.dark-mode {
    background-color: #121212;
    color: #e9ecef;
}

body.dark-mode a {
    color: #e9ecef;
}

body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
    color: #e9ecef !important;
}

body.dark-mode .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

body.dark-mode footer {
    background-color: #1e1e1e;
    color: #e9ecef;
}
/* Table hover and badges */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}
.badge-status {
    font-size: 0.75rem;
    padding: 0.4em 0.5em;
}
.card-header-custom {
    background-color: #343a40;
    color: #fff;
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.75rem 1rem;
}
.action-btn {
    border: none;
    background: none;
    color: #212529;
    cursor: pointer;
    font-size: 1.1rem;
}
.action-btn:hover {
    color: #0d6efd;
}
#desktop-table {
    display: none;
}
/* Show table on medium (>=768px) and larger screens */
@media (min-width: 768px) {
    #desktop-table {
        display: table; /* same as default table display */
    }
}
/* Mobile first: stacked table for screens smaller than 768px */
@media (max-width: 767px) {
    /* Hide table headers */
    .responsive-table thead {
        display: none;
    }
    /* Make table and rows block */
    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }
    /* Style each row as a card */
    .responsive-table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    /* Style each cell */
    .responsive-table td {
        text-align: left;
        padding: 0.5rem 0;
        border: none;
        position: relative;
        font-size: 0.9rem;
    }
    /* Show label before each data cell */
    .responsive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        color: #6c757d;
        margin-bottom: 0.25rem;
        text-transform: uppercase;
        font-size: 0.75rem;
    }
    /* Optional: make select dropdowns full width */
    .responsive-table select {
        width: 100%;
        font-size: 0.85rem;
    }
    /* Optional: subtle hover effect for cards */
    .responsive-table tr:hover {
        background-color: #f8f9fa;
        box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    }
}