@import url('header.css');
@import url('footer.css');

/* Footer Height Variable */
:root {
    --footer-height: 64px;
}

.header-content {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 15px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 90px !important; /* Match header height */
    height: 90px !important; /* Fixed height for perfect centering */
}

.logo-section {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    flex-shrink: 0 !important;

/* Ultra-modern Main Content: Glassmorphism, Animation, Premium Crimson Theme */
.modern-section, .pro-section {
    margin: 40px auto 0 auto;
    max-width: 1200px;
    background: linear-gradient(120deg, #fff 60%, #f8bbd0 100%);
    border-radius: 28px;
    box-shadow: 0 12px 48px 0 rgba(123,31,43,0.18);
    padding: 48px 56px 48px 56px;
    min-height: 360px;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    transition: box-shadow 0.3s, background 0.3s;
    backdrop-filter: blur(10px) saturate(1.1);
}
.pro-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.pro-section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #b71c1c;
    display: flex;
    align-items: center;
    gap: 16px;
    text-shadow: 0 4px 16px #7b1f2b22;
}
.section-icon {
    font-size: 2rem;
}
.card, .pro-card {
    background: linear-gradient(120deg, #fff 80%, #f8bbd0 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(123,31,43,0.18);
    padding: 32px 38px;
    margin-bottom: 28px;
    transition: box-shadow 0.22s, background 0.22s, transform 0.18s;
    backdrop-filter: blur(6px) saturate(1.1);
    position: relative;
    overflow: hidden;
}
.pro-card:hover {
    box-shadow: 0 16px 48px 0 #b71c1c33;
    background: linear-gradient(120deg, #fff 60%, #f8bbd0 100%);
    transform: translateY(-2px) scale(1.01);
}
.btn-primary, .btn-secondary, .pro-btn {
    border: none;
    border-radius: 12px;
    padding: 16px 36px;
    font-size: 1.18rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
    margin-right: 10px;
    box-shadow: 0 4px 18px #b71c1c22;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.btn-primary, .pro-btn.btn-primary {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    color: #fff;
}
.btn-primary:hover, .pro-btn.btn-primary:hover, .btn-primary:focus, .pro-btn.btn-primary:focus {
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 8px 32px #b71c1c33;
    transform: translateY(-2px) scale(1.04);
}
.btn-secondary, .pro-btn.btn-secondary {
    background: #fff;
    color: #b71c1c;
    border: 2px solid #b71c1c;
}
.btn-secondary:hover, .pro-btn.btn-secondary:hover, .btn-secondary:focus, .pro-btn.btn-secondary:focus {
    background: #f8bbd0;
    color: #fff;
    box-shadow: 0 8px 32px #b71c1c33;
    transform: translateY(-2px) scale(1.04);
}
.btn-icon {
    font-size: 1.3em;
    display: inline-block;
    vertical-align: middle;
}
.modern-table, .pro-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background: rgba(255,255,255,0.92);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px 0 rgba(123,31,43,0.13);
    font-size: 1.13rem;
    transition: box-shadow 0.22s, background 0.22s;
    backdrop-filter: blur(4px) saturate(1.05);
}
.modern-table th, .modern-table td, .pro-table th, .pro-table td {
    padding: 18px 22px;
    text-align: left;
    border-bottom: 1px solid #f2f2f2;
}
.modern-table th, .pro-table th {
    background: linear-gradient(90deg, #f8bbd0 0%, #fff 100%);
    color: #b71c1c;
    font-weight: 900;
    font-size: 1.18rem;
    letter-spacing: 0.3px;
}
.modern-table tr:last-child td, .pro-table tr:last-child td {
    border-bottom: none;
}
.pro-table tr:hover {
    background: #f8bbd0cc;
    transition: background 0.18s;
}
.table-loading {
    text-align: center;
    color: #b71c1c;
    font-style: italic;
}
.table-responsive {
    overflow-x: auto;
}
.form-group, .pro-form-group {
    margin-bottom: 28px;
}
.form-group label, .pro-form-group label {
    font-weight: 900;
    color: #b71c1c;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 0.15px;
}
.form-group input, .form-group select, .form-group textarea, .pro-input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 2px solid #b71c1c;
    font-size: 1.13rem;
    margin-top: 6px;
    margin-bottom: 3px;
    background: rgba(255,255,255,0.95);
    color: #222;
    transition: border 0.22s, box-shadow 0.22s;
    box-shadow: 0 2px 8px #b71c1c11;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .pro-input:focus {
    border: 2px solid #d32f2f;
    box-shadow: 0 4px 18px #b71c1c22;
    outline: none;
}
.checkbox-group, .pro-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 10px;
}
.checkbox-label, .pro-checkbox-label {
    font-weight: 900;
    color: #b71c1c;
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-badge, .pro-color-badge {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 28px;
    background: #f8bbd0;
    color: #b71c1c;
    font-weight: 900;
    font-size: 1.13rem;
    margin-left: 14px;
    box-shadow: 0 2px 8px #b71c1c11;
}
.modal, .pro-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(123,31,43,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background 0.22s;
    backdrop-filter: blur(8px) saturate(1.1);
}
.modal-content, .pro-modal .modal-content, .pro-card {
    background: linear-gradient(120deg, #fff 80%, #f8bbd0 100%);
    border-radius: 28px;
    box-shadow: 0 12px 48px 0 rgba(123,31,43,0.18);
    padding: 48px 56px 36px 56px;
    min-width: 320px;
    max-width: 98vw;
    position: relative;
    animation: modalFadeIn 0.3s;
    overflow: hidden;
    backdrop-filter: blur(6px) saturate(1.1);
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header, .pro-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.modal-close, .pro-modal .modal-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #b71c1c;
    cursor: pointer;
    transition: color 0.22s, transform 0.18s;
}
.modal-close:hover, .modal-close:focus {
    color: #d32f2f;
    transform: scale(1.15);
}
.modal-actions, .pro-modal-actions {
    display: flex;
    gap: 18px;
    margin-top: 28px;
    justify-content: flex-end;
}
.alert-box, .pro-alert {
    background: #f8bbd0;
    color: #b71c1c;
    border-radius: 14px;
    padding: 18px 28px;
    margin-bottom: 28px;
    font-weight: 900;
    font-size: 1.13rem;
    box-shadow: 0 2px 8px #b71c1c11;
}
.employetabs {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}
.report-tab, .pro-btn.report-tab {
    background: #fff;
    color: #b71c1c;
    border: 2px solid #b71c1c;
    border-radius: 12px 12px 0 0;
    padding: 16px 36px;
    font-size: 1.18rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
}
.report-tab.active, .report-tab:hover, .report-tab:focus {
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    color: #fff;
    box-shadow: 0 8px 32px #b71c1c33;
    transform: translateY(-2px) scale(1.04);
}
.report-tab-content {
    display: none;
}
.report-tab-content.active {
    display: block;
}
.report-filters {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 28px;
}
.stats-grid, .pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 18px;
}
.stat-card, .pro-stat-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px #b71c1c11;
    padding: 28px 18px;
    text-align: center;
    color: #b71c1c;
    font-weight: 900;
    font-size: 1.18rem;
    transition: box-shadow 0.22s, background 0.22s;
}
.pro-stat-card:hover {
    box-shadow: 0 8px 32px #b71c1c33;
    background: #f8bbd0cc;
}
.message {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 2000;
    background: linear-gradient(90deg, #b71c1c 0%, #d32f2f 100%);
    color: #fff;
    padding: 20px 40px;
    border-radius: 14px;
    box-shadow: 0 8px 32px #b71c1c33;
    font-size: 1.18rem;
    font-weight: 900;
    display: none;
    animation: fadeInDown 0.4s;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
    .modern-section, .pro-section {
        max-width: 98vw;
        padding: 32px 10vw 32px 10vw;
    }
}
@media (max-width: 700px) {
    .modern-section, .pro-section {
        padding: 18px 2vw 18px 2vw;
    }
    .card, .pro-card {
        padding: 18px 6vw;
    }
    .pro-section-header h2 {
        font-size: 1.5rem;
    }
    .modern-table th, .modern-table td, .pro-table th, .pro-table td {
        padding: 12px 10px;
        font-size: 1.01rem;
    }
    .form-group input, .form-group select, .form-group textarea, .pro-input {
        font-size: 1.01rem;
        padding: 12px 10px;
    }
    .btn-primary, .btn-secondary, .pro-btn {
        font-size: 1.01rem;
        padding: 12px 12px;
    }
}
@media (max-width: 480px) {
    .modern-section, .pro-section {
        padding: 10px 1vw 10px 1vw;
    }
    .card, .pro-card {
        padding: 10px 2vw;
    }
}
    align-items: center;
    gap: 10px;
}
.section-icon {
    font-size: 1.5em;
    margin-right: 4px;
}

/* Card Container */
.card {
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    padding: 24px 20px;
    margin-bottom: 24px;
    border: 1.5px solid #e0e7ff;
}

/* Responsive Table Container */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

/* Modern Table Styles */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    box-shadow: 0 4px 24px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
}
.modern-table thead {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.modern-table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 15px;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.modern-table td {
    padding: 15px 14px;
    border-bottom: 1.5px solid #e0e7ff;
    font-size: 14px;
}
.modern-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.1);
}
.modern-table tbody tr:last-child td {
    border-bottom: none;
}
.table-loading {
    text-align: center;
    color: #999;
    padding: 30px;
}

/* Modal Actions */
.modal-actions {
    text-align: right;
    gap: 10px;
    display: flex;
    justify-content: flex-end;
}

/* Color Badge for Modal */
.color-badge {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

/* Responsive Tweaks */
@media (max-width: 900px) {
    .modern-section, .card {
        padding: 12px 6px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .modern-table th, .modern-table td {
        padding: 10px 6px;
        font-size: 13px;
    }
}
@media (max-width: 600px) {
    .modern-section, .card {
        padding: 6px 2px;
    }
    .section-header h2 {
        font-size: 1.1rem;
    }
    .modern-table th, .modern-table td {
        padding: 7px 2px;
        font-size: 12px;
    }
    .modal-content.card {
        padding: 10px 2px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Form Styles */
form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

button.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

button.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

table thead {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 15px;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table td {
    padding: 15px 14px;
    border-bottom: 1.5px solid #e0e7ff;
    font-size: 14px;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.1);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Capitalize person names in tables */
#allotments-table td:first-child,
#returns-table td:first-child {
    text-transform: capitalize;
}

/* Action Buttons in Table */
.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: none;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    display: block;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    display: block;
}

/* Alerts */
.alert-box {
    background: linear-gradient(120deg, #fffbe6 60%, #ffeaa7 100%);
    color: #856404;
    padding: 18px 22px;
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.13);
}

.alert-box.warning {
    background: linear-gradient(120deg, #f8d7da 60%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.13);
}

/* Footer Tab Navigation */
.footer-tabs {
    background: linear-gradient(120deg, #fff 60%, #e0e7ff 100%);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 24px 0 rgba(102, 126, 234, 0.18), 0 -2px 12px 0 rgba(102, 126, 234, 0.10);
    z-index: 1000;
    border-top: 2px solid #e8ecf1;
    width: 100vw;
    min-height: var(--footer-height);
    border-radius: 18px 18px 0 0;
    transition: background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);

}

.footer-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 10px 0 6px 0;
    min-width: 70px;
    transition: all 0.3s ease;
    border-radius: 14px;
    position: relative;
    font-size: 1.05em;
    margin: 0 2px;
    box-shadow: none;
}


.footer-tab-btn:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.18);
    border-radius: 14px;
    font-weight: 700;
    transform: translateY(-4px) scale(1.08);
    border: 1.5px solid #fff;
}


.footer-tab-btn.active::after {
    display: none;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
    color: inherit;
}

.footer-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: inherit;
}

/* Adjust main content to account for fixed footer tabs */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden behind footer tabs */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: none; /* Hide footer content */
}

/* Hide footer */
footer.main-footer {
    display: none;
}

footer.main-footer p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

.footer-version {
    font-size: 13px !important;
    opacity: 0.8 !important;
}

/* Main Content */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    animation: slideIn 0.4s ease-in;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    padding: 36px 28px 32px 28px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border: 1.5px solid #e0e7ff;
    margin-bottom: 24px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Form Styles */
form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

button.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

button.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

table thead {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 15px;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table td {
    padding: 15px 14px;
    border-bottom: 1.5px solid #e0e7ff;
    font-size: 14px;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.1);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Capitalize person names in tables */
#allotments-table td:first-child,
#returns-table td:first-child {
    text-transform: capitalize;
}

/* Action Buttons in Table */
.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: none;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    display: block;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    display: block;
}

/* Alerts */
.alert-box {
    background: linear-gradient(120deg, #fffbe6 60%, #ffeaa7 100%);
    color: #856404;
    padding: 18px 22px;
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.13);
}

.alert-box.warning {
    background: linear-gradient(120deg, #f8d7da 60%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.13);
}

/* Footer Tab Navigation */
.footer-tabs {
    background: linear-gradient(120deg, #fff 60%, #e0e7ff 100%);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 24px 0 rgba(102, 126, 234, 0.18), 0 -2px 12px 0 rgba(102, 126, 234, 0.10);
    z-index: 1000;
    border-top: 2px solid #e8ecf1;
    width: 100vw;
    min-height: var(--footer-height);
    border-radius: 18px 18px 0 0;
    transition: background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
}

.footer-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 10px 0 6px 0;
    min-width: 70px;
    transition: all 0.3s ease;
    border-radius: 14px;
    position: relative;
    font-size: 1.05em;
    margin: 0 2px;
    box-shadow: none;
}

.footer-tab-btn:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.18);
    border-radius: 14px;
    font-weight: 700;
    transform: translateY(-4px) scale(1.08);
    border: 1.5px solid #fff;
}


.footer-tab-btn.active::after {
    display: none;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
    color: inherit;
}

.footer-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: inherit;
}

/* Adjust main content to account for fixed footer tabs */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden behind footer tabs */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: none; /* Hide footer content */
}

/* Hide footer */
footer.main-footer {
    display: none;
}

footer.main-footer p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

.footer-version {
    font-size: 13px !important;
    opacity: 0.8 !important;
}

/* Main Content */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    animation: slideIn 0.4s ease-in;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    padding: 36px 28px 32px 28px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border: 1.5px solid #e0e7ff;
    margin-bottom: 24px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Form Styles */
form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

button.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

button.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

table thead {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 15px;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table td {
    padding: 15px 14px;
    border-bottom: 1.5px solid #e0e7ff;
    font-size: 14px;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.1);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Capitalize person names in tables */
#allotments-table td:first-child,
#returns-table td:first-child {
    text-transform: capitalize;
}

/* Action Buttons in Table */
.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: none;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    display: block;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    display: block;
}

/* Alerts */
.alert-box {
    background: linear-gradient(120deg, #fffbe6 60%, #ffeaa7 100%);
    color: #856404;
    padding: 18px 22px;
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.13);
}

.alert-box.warning {
    background: linear-gradient(120deg, #f8d7da 60%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.13);
}

/* Footer Tab Navigation */
.footer-tabs {
    background: linear-gradient(120deg, #fff 60%, #e0e7ff 100%);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 24px 0 rgba(102, 126, 234, 0.18), 0 -2px 12px 0 rgba(102, 126, 234, 0.10);
    z-index: 1000;
    border-top: 2px solid #e8ecf1;
    width: 100vw;
    min-height: var(--footer-height);
    border-radius: 18px 18px 0 0;
    transition: background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
}

.footer-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 10px 0 6px 0;
    min-width: 70px;
    transition: all 0.3s ease;
    border-radius: 14px;
    position: relative;
    font-size: 1.05em;
    margin: 0 2px;
    box-shadow: none;
}


.footer-tab-btn:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.18);
    border-radius: 14px;
    font-weight: 700;
    transform: translateY(-4px) scale(1.08);
    border: 1.5px solid #fff;
}


.footer-tab-btn.active::after {
    display: none;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
    color: inherit;
}

.footer-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: inherit;
}

/* Adjust main content to account for fixed footer tabs */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden behind footer tabs */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: none; /* Hide footer content */
}

/* Hide footer */
footer.main-footer {
    display: none;
}

footer.main-footer p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

.footer-version {
    font-size: 13px !important;
    opacity: 0.8 !important;
}

/* Main Content */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    animation: slideIn 0.4s ease-in;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    padding: 36px 28px 32px 28px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border: 1.5px solid #e0e7ff;
    margin-bottom: 24px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Form Styles */
form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

button.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

button.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

table thead {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 15px;
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

table td {
    padding: 15px 14px;
    border-bottom: 1.5px solid #e0e7ff;
    font-size: 14px;
}

table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
    box-shadow: inset 0 0 8px rgba(102, 126, 234, 0.1);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* Capitalize person names in tables */
#allotments-table td:first-child,
#returns-table td:first-child {
    text-transform: capitalize;
}

/* Action Buttons in Table */
.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    display: none;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
}

.message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
    display: block;
}

.message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    display: block;
}

/* Alerts */
.alert-box {
    background: linear-gradient(120deg, #fffbe6 60%, #ffeaa7 100%);
    color: #856404;
    padding: 18px 22px;
    border-left: 4px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 22px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.13);
}

.alert-box.warning {
    background: linear-gradient(120deg, #f8d7da 60%, #f5c6cb 100%);
    color: #721c24;
    border-left-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.13);
}

/* Footer Tab Navigation */
.footer-tabs {
    background: linear-gradient(120deg, #fff 60%, #e0e7ff 100%);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 24px 0 rgba(102, 126, 234, 0.18), 0 -2px 12px 0 rgba(102, 126, 234, 0.10);
    z-index: 1000;
    border-top: 2px solid #e8ecf1;
    width: 100vw;
    min-height: var(--footer-height);
    border-radius: 18px 18px 0 0;
    transition: background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(6px);
}

.footer-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 10px 0 6px 0;
    min-width: 70px;
    transition: all 0.3s ease;
    border-radius: 14px;
    position: relative;
    font-size: 1.05em;
    margin: 0 2px;
    box-shadow: none;
}

.footer-tab-btn:hover {
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.18);
    border-radius: 14px;
    font-weight: 700;
    transform: translateY(-4px) scale(1.08);
    border: 1.5px solid #fff;
}

.footer-tab-btn.active::after {
    display: none;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
    color: inherit;
}

.footer-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: inherit;
}

/* Adjust main content to account for fixed footer tabs */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 100px; /* Add padding to prevent content from being hidden behind footer tabs */
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: none; /* Hide footer content */
}

/* Hide footer */
footer.main-footer {
    display: none;
}

footer.main-footer p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    letter-spacing: 0.2px;
}

.footer-version {
    font-size: 13px !important;
    opacity: 0.8 !important;
}

/* Main Content */
main {
    padding: 30px 20px;
    min-height: calc(100vh - 300px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    padding: 12px 24px;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-content {
    display: none;
    animation: slideIn 0.4s ease-in;
    background: linear-gradient(120deg, #fff 60%, #f0f4ff 100%);
    padding: 36px 28px 32px 28px;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(102, 126, 234, 0.10), 0 2px 8px 0 rgba(102, 126, 234, 0.06);
    border: 1.5px solid #e0e7ff;
    margin-bottom: 24px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

/* Form Styles */
form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.98));
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background-color: white;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Button Styles */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

button.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

button.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.4);
}

button.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

button.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    /* background property removed due to syntax error */
}