/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #fbfff9 0%, #768e62 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.admin-container {
    max-width: 1200px;
}

.logo-placeholder {
    width: 100px;
    height: auto;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

select {
    cursor: pointer;
    background: white;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button, .btn {
    width: 100%;
    padding: 14px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #fbfff9 -40%, #768e62 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

button:active, .btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #6c757d;
    margin-top: 10px;
}

.btn-danger {
    background: #dc3545;
}

.btn-success {
    background: #28a745;
}

.btn-small {
    width: auto;
    padding: 8px 16px;
    font-size: 14px;
    display: inline-block;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-nav a {
    flex: 1;
    min-width: 150px;
}

.section-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.section-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.section-card:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateY(-4px);
}

.section-card h3 {
    color: #333;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

.table-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

.year-selector {
    margin: 20px 0;
}

.print-page {
    display: none;
}

@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-page {
        display: block;
        page-break-after: always;
        padding: 40px;
        height: auto;
    }
    
    .print-page:last-child {
        page-break-after: auto;
    }
    
    /* Container for the table */
    .excel-static-container {
        display: inline-block;
        width: 100%;
    }

    table.excel-style {
        border-collapse: collapse; /* Merges borders into a single gridline */
        font-family: "Segoe UI", Calibri, Tahoma, sans-serif; /* Standard Excel fonts */
        font-size: 13px;
        color: #333;
    }

    /* Data cell styling */
    table.excel-style td {
        border: 2px solid black; /* Subtle gridlines */
        padding: 4px 10px;
        background-color: #ffffff; /* Solid white background */
        white-space: nowrap; /* Prevents text from wrapping */
    }

    /* Optional: Zebra striping for better readability */
    table.excel-style tr:nth-child(even) td {
        background-color: #fcfcfc;
    }
    
    /* Default box layout for other sections */
    .print-box {
        border: 2px solid #333;
        padding: 20px;
        border-radius: 8px;
        max-width: 500px;
        font-size: 12px;
    }
    
    .print-box h2 {
        margin-bottom: 15px;
        color: #333;
        font-size: 16px;
    }
    
    .print-field {
        margin-bottom: 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #ddd;
    }
    
    .print-field:last-child {
        border-bottom: none;
    }
    
    .print-field label {
        font-weight: bold;
        display: block;
        margin-bottom: 3px;
        font-size: 11px;
        color: #555;
    }
    
    .print-field p {
        margin: 0;
        color: #333;
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .section-selector {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}