/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
}

/* Main Application Styles */
.container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    margin: 0;
    font-size: 24px;
}

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

.header-info span {
    font-size: 14px;
}

.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* Filters */
.filters {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.filter-group {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

.period-type-group {
    width: 100%;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: auto;
    min-width: auto;
}

.apply-btn {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    width: auto;
}

.apply-btn:hover {
    background-color: #218838;
}

.export-container {
    padding: 15px 20px;
    text-align: right;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.export-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.export-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.export-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Table Styles */
.entries-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

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

.entries-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.entries-table tr:hover {
    background-color: #f5f5f5;
}

.entries-table tfoot {
    background-color: #e9ecef;
    border-top: 2px solid #dee2e6;
}

.entries-table .total-row td {
    padding: 15px 12px;
    font-weight: bold;
    font-size: 15px;
    color: #333;
}


/* Pagination */
.pagination {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Error and Status Messages */
.error {
    color: #721c24;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px;
    font-size: 14px;
}

.no-entries {
    text-align: center;
    padding: 60px 40px;
    color: #666;
}

.no-entries h3 {
    margin: 0 0 10px 0;
    color: #555;
}

.no-entries p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 0;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header-info {
        flex-direction: column;
        gap: 10px;
    }

    .filters {
        text-align: center;
    }

    .filter-group {
        display: block;
        margin: 10px 0;
    }

    .filter-group select {
        width: 100%;
        max-width: 300px;
    }

    .apply-btn {
        margin: 10px 0 0 0;
        width: 100%;
        max-width: 200px;
    }

    .export-container {
        text-align: center;
        padding: 15px;
    }

    .export-link {
        font-size: 13px;
    }

    .entries-table {
        font-size: 12px;
    }

    .entries-table th,
    .entries-table td {
        padding: 8px 6px;
    }

    .login-container {
        padding: 10px;
    }

    .login-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .entries-table th:nth-child(3),
    .entries-table td:nth-child(3),
    .entries-table th:nth-child(6),
    .entries-table td:nth-child(6) {
        display: none;
    }
}