* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.control-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

input,
select,
button {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 0;
}

button:hover {
    background-color: #2980b9;
}

.day-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.day-title {
    font-weight: 600;
    color: #2c3e50;
}

.remove-day {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    width: auto;
}

.time-entry {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.time-input-group {
    flex: 1;
}

.add-time-entry {
    background-color: #ecf0f1;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 10px;
    width: auto;
}

.add-time-entry:hover {
    background-color: #dfe6e9;
}

.remove-time-entry {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 10px;
    cursor: pointer;
    width: auto;
}

.results {
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background-color: #f5f7fa;
}

.summary-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.highlight {
    font-weight: 600;
    color: #2c3e50;
}

.overtime {
    color: #e74c3c;
}

.regular {
    color: #2ecc71;
}

.add-day-container {
    text-align: center;
    margin-top: 20px;
}

.add-day {
    background-color: #2ecc71;
    width: auto;
    display: inline-block;
    padding: 12px 30px;
}

.add-day:hover {
    background-color: #27ae60;
}

.export-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.export-btn {
    flex: 1;
}

.pdf-btn {
    background-color: #e74c3c;
}

.pdf-btn:hover {
    background-color: #c0392b;
}

.save-btn {
    background-color: #2ecc71;
}

.save-btn:hover {
    background-color: #27ae60;
}

#calculate-btn {
    margin: 20px;
}

.batch-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.batch-control {
    flex: 1;
    min-width: 200px;
}

.batch-apply-btn {
    background-color: #9b59b6;
}

.batch-apply-btn:hover {
    background-color: #8e44ad;
}

.holiday-toggle {
    background-color: #f39c12;
    width: auto;
    padding: 8px 15px;
}

.holiday-toggle:hover {
    background-color: #d35400;
}

.holiday {
    background-color: #ffeaa7;
}

.holiday .day-title {
    color: #e67e22;
}

.weekend {
    background-color: #f0f8ff;
}

.weekend .day-title {
    color: #3498db;
}

.day-status {
    margin-left: 10px;
    font-size: 0.9em;
    font-weight: normal;
}

.quick-fill-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e8f4f8;
    border-radius: 8px;
}

.quick-fill-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.quick-fill-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-fill-btn {
    padding: 8px 15px;
    width: auto;
}

@media (max-width: 768px) {
    .time-entry {
        flex-direction: column;
    }

    .remove-time-entry {
        width: 100%;
    }

    .export-buttons {
        flex-direction: column;
    }
}