/* ========== Global Styles ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.5;
}

h2, h3 {
    color: #003366;
}

/* ========== Header ========== */
header {
    background: #003366;
    color: #fff;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

header h2 {
    font-size: 1.7rem; 
    color: #eee;
    text-align: center;
    flex-grow: 1;
}

header .button-wrapper,
header .auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-toggle-wrapper {
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
}

.toggle-form-btn {
    position: relative;
    overflow: hidden;
    background: #4CAF50;
    border: 2px solid #4CAF50;
    font-size: 1.05rem;
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.toggle-form-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #005fa3;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
    z-index: -1;
}

.toggle-form-btn:hover::before {
    transform: translateY(0);
}

.toggle-form-btn:hover {
    border-color: #005fa3;
    color: #fff;
}

.toggle-form-btn.open {
    border-color: #f44336;
    background: #f44336;     
}

.toggle-form-btn.open::before {
    background: #ffcc00;
    top: -100%;    
}

.toggle-form-btn.open:hover::before {
    top: 0;  
}

.toggle-form-btn.open:hover {
    border-color: #ffcc00; 
    background: #f44336;
    color: #fff;
}

.auth-buttons button {
    position: relative;
    overflow: hidden;
    background: #005fa3;
    border: 2px solid #005fa3;
    font-weight: bold;
    font-size: 1.05rem;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1;
    color: #ffffff;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.auth-buttons button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 204, 0, 0.95);
    transform: translateX(-101%);
    transition: transform 0.35s ease;
    z-index: -1;
}

.auth-buttons button:hover::before {
    transform: translateX(0);
}

.auth-buttons button:hover {
    color: #003366;
    border-color: rgba(255, 204, 0, 0.95);
}

#adminLogoutBtn {
    color: #ffffff;
}

#adminLogoutBtn::before {
    background: #b91c1c;
}

#adminLogoutBtn:hover {
    color: #b91c1c;
}

.auth-buttons button,
.toggle-form-btn {
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ========== Form Section ========== */
.form-section {
    background: #fff;
    margin: 10px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 1200px;
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
    transition:
        max-height 0.5s ease,
        opacity 0.4s ease,
        padding 0.4s ease,
        margin 0.4s ease;
}

.form-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.form-section h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.form-section input {
    padding: 10px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

.form-section input::placeholder {
    text-transform: none;
}

.form-section input::-webkit-input-placeholder { text-transform: none; }
.form-section input:-ms-input-placeholder { text-transform: none; }

.form-section input:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

.container-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    align-items: stretch;
}

.form-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-col input {
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    width: 100%;
}

.form-col input:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

.input-spacer {
    height: 44px;
}

.button-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-col::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 51, 102, 0.25),
        transparent
    );
}

.button-panel {
    background: linear-gradient(
        135deg,
        rgba(0, 51, 102, 0.06),
        rgba(0, 85, 170, 0.10)
    );
    padding: 28px 20px;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    width: 100%;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 180px;
    padding: 14px 22px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    background: linear-gradient(135deg, #0a3d62, #1e6fb9);
    border: 2px solid #0a3d62;
    border-radius: 30px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    z-index: 0;
}

.add-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15); 
    transform: translateX(-50%);
    transition: width 0.4s ease;
    z-index: -1; 
}

.add-btn:hover::before {
    width: 100%; 
}

.add-btn:hover {
    background: linear-gradient(135deg, #062c45, #145a96);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.add-btn:focus {
    outline: none; 
    box-shadow: 0 0 0 3px rgba(30, 111, 185, 0.5); 
}

.add-btn:focus::before {
    width: 100%; 
}

.add-btn .btn-icon {
    display: block; 
    flex-shrink: 0;
}
/* ========== Search Wrapper ========== */
.search-wrapper {
    max-width: 1200px;
    margin: 15px auto;
    padding: 0 20px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ccd6e0;
    border-radius: 32px;
    padding: 12px 18px;
    gap: 12px;
    width: 600px;      
    max-width: 100%;
    margin: 0 auto; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: width 0.35s ease, border 0.3s ease, box-shadow 0.3s ease;
    transform-origin: left center;
}

.search-box:focus-within {
    width: 800px;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}

.search-box.expanded {
    width: 800px;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}

.search-box input#searchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    padding: 6px 4px;
    color: #333;
    text-transform: uppercase;
}

#searchInput::placeholder {
    text-transform: none;
}

.search-icon {
    font-size: 1.15rem;
    color: #6b7c93;
}

.clear-search {
    font-size: 1.15rem;
    color:#8a9bb2;
    cursor:pointer;
    padding: 4px;
    border-radius: 50%;
    opacity: 0;     
    pointer-events: none;        
    transition: opacity 0.18s ease;
    display: inline-flex;   
    align-items: center;
    justify-content: center;
    min-width: 24px;    
}

.clear-search:hover {
    background:#eef2f7;
    color: #003366;
}

#searchInput:not(:placeholder-shown) ~ .clear-search {
    opacity: 1;
    pointer-events: auto;
}

/* ========== Table Section ========== */
.table-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.table-title {
    margin: 0 auto;
    font-weight: 600;
    color: #003366;
    border-bottom: 2px solid #003366;
    padding-bottom: 6px;
    text-align: center;
}

.export-bar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.table-section {
    margin: 20px 0;
    max-width: 1200px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #003366;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: top;  
}

td {    
    border-bottom: 1px solid #eee;
    border-right: 1px solid #ddd;
}

th {
    background: #f0f4f8;
    font-weight: 600;
    cursor: pointer;
    border-top: 2px solid #003366;
    border-left: 2px solid #003366;
    border-right: 2px solid #003366;
    border-bottom: 2px solid #003366;
    text-align: center;
}

th.sortable:hover {
    background: #d9e6f2;
}

tr:nth-child(even) {
    background: #fafafa;
}

tr:hover {
    background: #f1f7ff;
}

th:last-child,
td:last-child {
    border-right: none;
}

tr.search-match {
    background-color: #fff3cd; 
}

.no-record {
    text-align: center;
    font-weight: bold;
    color: #dc3545;
}

.highlight-exact {
    background-color: #c3f7c3;  
    font-weight: bold;
}

.highlight-partial {
    background-color: #f3d26e; 
}

/* ========== Pagination ========== */
.pagination {
    text-align: center;
    margin: 20px 0;
}

.pagination button {
    background: #003366;
    color: #fff;
    border: none;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover:not(:disabled) {
    background: #002244;
}

.pagination button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========== Scroll To Top Button ========== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #0047ab, #00a8ff);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 25px rgba(0, 71, 171, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    z-index: 999;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn .arrow {
    transition: transform 0.3s ease;
}

#scrollTopBtn:hover {
    background: linear-gradient(135deg, #003a8f, #0086d1);
    box-shadow: 0 14px 35px rgba(0, 71, 171, 0.5);
}

#scrollTopBtn:hover .arrow {
    transform: translateY(-4px);
}

#scrollTopBtn:active {
    transform: scale(0.95);
}

/* ========== Modal Overlay ========== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 400px;
    max-width: 95%;
    padding: 35px 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.login-icon-header {
    font-size: 3rem;
    text-align: center;
}

.modal-content h2 {
    text-align: center;
    font-weight: 800;
    margin-bottom: 10px;
}

.logout-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    max-width: 350px;  
    width: 90%;
    text-align: center;
}

.logout-content p {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

.logout-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.logout-buttons button {
    flex: 1;
    padding: 12px 0;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#confirmLogout {
    background-color: #2ecc71;
    color: #fff;
}

#confirmLogout:hover {
    background-color: #27ae60;
}

#cancelLogout {
    background-color: #e74c3c;
    color: #fff;
}

#cancelLogout:hover {
    background-color: #c0392b;
}

.logout-buttons button:active {
    transform: scale(0.97);
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #6b7c93;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 50px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    cursor: pointer;
}

.modal-content button {
    padding: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #003366;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #002244;
}

.modal-content .closeModal {
    background-color: #cc0000;
    color: #fff;
}

.modal-content .closeModal:hover {
    background-color: #990000;
}

#editModal input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#editModal input[type="text"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

#editModal .closeEdit {
    background-color: #cc0000; 
    color: #fff;         
    border: 1px solid #990000;
    min-width: 120px;
    padding: 12px 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#editModal .closeEdit:hover {
    background-color: #990000;
    border-color: #660000;
    color: #fff;
}

#updateEntry {
    background: #007bff;
    color: #fff;
    border: 1px solid #0056b3;
    min-width: 120px;
    padding: 12px 18px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#updateEntry:hover {
    background: #0056b3;
    border-color: #003f7f;
}

.modal-actions {
    display: flex;
    justify-content: space-around;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#confirmModal::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

#confirmYes {
    background-color: #e74c3c;
    color: white;
}

#confirmNo {
    background-color: #ccc;
    color: black;
}

/* ========== Toast Notification ========== */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    border-radius: 5px;
    display: none;
    font-weight: 600;
    z-index: 1000;
    color: #fff;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

#toast.success {
    background: #4CAF50;  
}

#toast.info {
    background: #2196F3; 
}

#toast.warning {
    background: #FF9800;  
}

#toast.error {
    background: #F44336;
}

/* ========== Announcement Section ========== */
.announcement {
    background: #fff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 1200px;
}

.announcement h3 {
    text-align: center;
    font-weight: 600;
}

#announcementFormSection {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 0 0 10px 0;
    background-color: #f9f9f9;
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    transform: translateY(0);
    transition:
        max-height 0.45s ease,
        opacity 0.35s ease,
        transform 0.35s ease,
        margin 0.35s ease;
}

#announcementFormSection.collapsed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-12px); 
    margin-bottom: 0;
    pointer-events: none;
}

#announcementForm label {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

#announcementForm input[type="text"],
#announcementForm input[type="datetime-local"] {
    padding: 8px 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 4px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

#announcementForm input:focus {
    border-color: #007bff;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

.announcement-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.announcement-actions button {
    display: inline-flex;  
    align-items: center;
    gap: 6px;
    padding: 6px 12px;     
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.announcement-actions .btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.announcement-actions button:hover {
    transform: translateY(-1px);
}

#annSubmitBtn {
    background-color: #0d6efd;
    color: #fff;
}

#annSubmitBtn:hover {
    background-color: #0b5ed7;
}

#cancelAnnEdit {
    background-color: #dc3545;
    color: #fff;
}

#cancelAnnEdit:hover {
    background-color: #b02a37;
}

#announcementForm .announcement-row {
    display: flex;    
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

#announcementForm .announcement-col {
    flex: 1 1 0;
    min-width: 200px;
}

#announcementForm .vertical-divider {
    width: 1px;
    background-color: #ccc;
    margin: 0 8px;
}

.announcement-row.textarea-row {
    flex-direction: column;
}

#announcementForm textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    font-size: 14px;
}

/* ========== Admin-only Sections ========== */
.admin-only {
    display: none;
}

.admin-only button {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 12px;
}

.admin-only button:first-child { 
    background-color: #3498db; 
    color: white;
}

.admin-only button:last-child { 
    background-color: #e74c3c;
    color: white;
}

.admin-only button:hover:first-child {
    background-color: #2980b9;
}

.admin-only button:hover:last-child {
    background-color: #c0392b;
}

.site-footer {
    background: #003366;     
    color: #ffffff;
    padding: 20px 40px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left p {
    margin: 0;
    font-weight: bold;
    font-size: 1rem;
}

.footer-right a {
    color: #ffffff;
    margin-left: 20px;
    text-decoration: none;
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background: #ffcc00;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-right a:hover::after {
    transform: scaleX(1);
}

.footer-right a:hover {
    color: #ffcc00;  
}

/* ========== Responsive Media Queries ========== */
@media (max-width: 900px) {
    .container-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .button-col {
        grid-column: span 2;
    }

    .button-col::before {
        display: none;
    }
}

@media (max-width: 768px) {
    header h2 {
        font-size: 1.4rem;
    }

    header button,
    #adminLogoutBtn {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .search-box {
        width: 100%;
    }

    .search-box:focus-within {
        width: 100%;
    }

    .search-wrapper {
        padding: 0 12px;
    }

    #announcementForm .announcement-row {
        flex-direction: column;
    }

    #announcementForm .vertical-divider {
        display: none;
    }
}

@media (max-width: 520px) {
    .container-form {
        grid-template-columns: 1fr;
    }

    .button-col {
        grid-column: span 1;
    }

    .add-btn {
        max-width: 100%;
    }

    .button-panel {
        padding: 20px 14px;
    }
}

@media (max-width: 480px) {
    #editModal .modal-content {
        width: 92%;
        padding: 25px 20px;
    }

    .edit-actions {
        flex-direction: column;
        gap: 10px;
    }

    .closeEdit, #updateEntry {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .search-wrapper {
        padding: 0 12px;
    }

    header {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    header .auth-buttons {
        order: 1;
        justify-content: center;
        width: 100%;
    }

    header h2 {
        order: 2;
        font-size: 1.4rem;
    }

    header .button-wrapper {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .form-section {
        padding: 15px;
    }

    .table-title {
        font-size: 0.9rem;
    }

    .export-bar button {
        font-size: 0;
    }

    .export-bar button::before {
        font-size: 1rem;
        content: "📄";
    }    

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: max-content;  
        min-width: 100%;
        border-collapse: collapse;
    }

    table th,
    table td {
        padding: 6px 8px;
        font-size: 0.85rem;
        white-space: nowrap;  
        word-break: normal;  
    }

    tr {
        height: auto;     
    }

    .admin-only {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        white-space: nowrap;
    }

    .pagination button {
        padding: 6px 10px;
        margin: 0 3px;
    }

    .announcement {
        text-align: center;
    }

    .announcement .toggle-form-btn {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin: 12px auto 0;
    }

    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;  
        text-align: center;
    }
    
    .footer-left {
        margin-bottom: 15px;
        font-size: 0.8;      
    }
    
    .footer-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;    
        gap: 20px;           
        margin-top: 0;
    }
    
    .footer-right a {
        margin-left: 0;
        margin-right: 0; 
    }
}

@media (max-width: 400px) {
    .button-wrapper {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .export-bar {
        justify-content: center;
    }

    .logout-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .logout-buttons button {
        width: 100%;
    }

    .modal-actions button {
        width: 100%;
    }

    td.admin-only button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    td.admin-only {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}