/* ===========================
   SITE BRAND
=========================== */
#site-brand {
    width: 100%;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 0;
    background-color: #f8f8f8;
    border-bottom: 2px solid #ccc;
    letter-spacing: 2px;
}
 
/* ===========================
   GENERAL BODY
=========================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
 
/* ===========================
   PAGE TITLES
=========================== */
.paragraph-center {
    text-align: center;
    margin: 20px 0;
}
 
.page-title {
    text-align: center;
    margin: 20px 0;
    font-size: 24px;
    font-weight: bold;
}
 
/* ===========================
   NAVIGATION
=========================== */
#main-nav {
    width: 100%;
    background-color: #f8f8f8;
}
 
.nav {
    width: 100%;
    background-color: #f8f8f8;
}
 
.nav-user {
    font-weight: bold;
    color: #006600;
    padding: 0 10px;
}
 
/* Desktop Menu */
.desktop-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 0;
    margin: 0;
}
 
.desktop-menu li {
    margin: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
 
.desktop-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
.desktop-menu a:hover {
    background-color: #eee;
    border-radius: 5px;
}
 
.user-display {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
 
/* Mobile Menu Toggle Icon */
.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: black;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 20;
}
 
/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 10;
}
 
.mobile-menu li {
    margin: 0;
}
 
.mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 15px;
    display: block;
    border-bottom: 1px solid #555;
    text-align: center;
}
 
.mobile-menu a:hover {
    background-color: #555;
}
 
.mobile-menu.show {
    display: flex;
    transform: translateY(0);
}
 
/* Mobile Menu Close Button */
.mobile-menu-close {
    text-align: right;
    padding: 15px 20px;
    border-bottom: 1px solid #555;
}
 
.mobile-menu-close span {
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}
 
.mobile-menu-close span:hover {
    color: #ccc;
}
 
/* Mobile User Display */
#user-display-mobile {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #555;
}
 
#user-display-mobile .nav-user {
    color: #90ee90;
}
 
/* ===========================
   MODAL
=========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
 
.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
 
.modal-content button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
 
#confirm-logout {
    background-color: red;
    color: white;
}
 
#cancel-logout {
    background-color: #ccc;
}
 
/* ===========================
   FORMS
=========================== */
.form-container {
    display: grid;
    gap: 15px;
    margin: 0 auto;
    padding: 20px;
    max-width: 600px;
    box-sizing: border-box;
}
 
.form-container input,
.form-container label {
    width: 100%;
}
 
.form-container button {
    grid-column: span 2;
}
 
.form-container.few-fields {
    grid-template-columns: 1fr;
}
 
.form-container.many-fields {
    grid-template-columns: 1fr 1fr;
}
 
/* ===========================
   TABLES - SHARED BASE
=========================== */
.stats-table,
.summary-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
 
.stats-table th,
.stats-table td,
.summary-table th,
.summary-table td {
    border: 1px solid black;
    text-align: center;
    padding: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
 
.stats-table th,
.summary-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}
 
.summary-table td.highlight-max {
    font-weight: bold;
    border: 2px solid black;
    background-color: #e0f7fa;
}
 
.highlight-border {
    border: 3px solid black !important;
    font-weight: bold;
    background-color: #f9f9f9;
}
 
/* ===========================
   LAYOUT CONTAINERS
=========================== */
.tables-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
 
.fev1-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
}
 
.stats-container {
    width: 40%;
}
 
.summary-container {
    width: 100%;
    max-width: 100%;
    margin: auto;
}
 
/* ===========================
   ORIENTATION NOTICE
   (summary.php only)
=========================== */
.landscape-summary .orientation-notice {
    display: none;
}
 
/* ===========================
   PRINT
=========================== */
@media print {
    @page {
        size: landscape;
        margin: 0.5in;
    }
 
    body {
        margin: 0;
        font-size: 8px;
    }
 
    .summary-container {
        width: 100%;
        text-align: center;
    }
 
    .summary-table {
        font-size: 10px;
        width: 100%;
    }
 
    .summary-table th,
    .summary-table td {
        padding: 3px;
        font-size: 9px;
    }
 
    .summary-table th {
        position: sticky;
        top: 0;
        background: #f2f2f2;
    }
 
    h2.page-title {
        font-size: 12px;
        margin-bottom: 20px;
    }
 
    #main-nav,
    .menu-icon,
    .mobile-menu {
        display: none;
    }
}
 /* ===========================
   EXPORT CONTROLS
=========================== */
 .export-controls {
    text-align: center;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.export-controls button,
.export-controls a {
    padding: 10px 20px;
    background-color: #006600;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.export-controls button:hover,
.export-controls a:hover {
    background-color: #004400;
}

@media print {
    .export-controls {
        display: none;
    }
}
 
/* ===========================
   RESPONSIVE - TABLET / SMALL
=========================== */
@media (max-width: 1233px) {
    .desktop-menu {
        display: none;
    }
 
    .menu-icon {
        display: block;
    }
 
    .form-container.many-fields {
        grid-template-columns: 1fr;
    }
 
    .fev1-layout {
        flex-direction: column;
        gap: 15px;
    }
 
    .stats-container {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
 
    .summary-container {
        width: 100%;
        max-width: 100%;
        order: 2;
    }
 
    .stats-table th,
    .stats-table td,
    .summary-table th,
    .summary-table td {
        font-size: 10px;
        padding: 4px 2px;
    }
}
 
/* ===========================
   RESPONSIVE - MOBILE TOUCH
=========================== */
@media (hover: none) and (pointer: coarse) {
    .landscape-summary .orientation-notice {
        display: block;
        background-color: #fff3cd;
        border: 1px solid #ffc107;
        color: #856404;
        text-align: center;
        padding: 10px;
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: bold;
        border-radius: 4px;
    }
 
    .form-container {
        grid-template-columns: 1fr;
    }
 
    .form-container label {
        font-weight: bold;
        margin-bottom: 0;
    }
 
    .form-container input {
        width: 100%;
        box-sizing: border-box;
    }
 
    .form-container button {
        grid-column: span 1;
        width: 100%;
    }
}