:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --background-color: #e2e8f0;
    --text-color: #2f3640;
    --border-color: #cbd5e1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Buttons */
button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-bottom: 0.5rem;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.action-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    margin-right: 0.3rem;
    margin-bottom: 0;
    width: auto;
}
.btn-danger {
    background-color: #e74c3c;
}
.btn-danger:hover {
    background-color: #c0392b;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 600px) {
    .action-buttons {
        flex-direction: row;
    }
    button {
        width: auto;
    }
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

/* Status Messages */
.status-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #e67e22;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #cbd5e1;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.copyright-text {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-btn {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    width: auto;
    margin: 0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.legal-page {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Date Filter Group */
.date-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    font-size: 0.85rem;
    width: 100%;
}
.date-filter-group input {
    padding: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 100%;
}
.date-filter-group label {
    margin-bottom: 0;
}
.date-filter-group button {
    padding: 0.5rem;
    margin: 0;
    width: 100%;
}

@media (min-width: 600px) {
    .date-filter-group {
        flex-direction: row !important;
        align-items: center !important;
        width: auto !important;
    }
    .date-filter-group input {
        width: auto !important;
    }
    .date-filter-group button {
        padding: 0.25rem 0.5rem !important;
        width: auto !important;
    }
}

