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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 30px;
    color: #222;
}

h2 {
    margin-bottom: 15px;
    color: #444;
    font-size: 1.5em;
}

.today-status {
    margin-bottom: 15px;
    padding: 0;
}

#today-content {
    margin: 0;
}

.slots-section {
    margin-top: 30px;
}

.add-button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    background-color: #4CAF50;
    color: white;
}

.add-button:hover {
    background-color: #45a049;
}


.add-button, .save-button, .cancel-button, .edit-button, .delete-button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.save-button {
    background-color: #4CAF50;
    color: white;
}

.save-button:hover {
    background-color: #45a049;
}

.cancel-button, .delete-button {
    background-color: #f44336;
    color: white;
}

.cancel-button:hover, .delete-button:hover {
    background-color: #da190b;
}

.edit-button {
    background-color: #2196F3;
    color: white;
}

.edit-button:hover {
    background-color: #0b7dda;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.slots-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.slots-table thead {
    background-color: #f5f5f5;
}

.slots-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.slots-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.slots-table tbody tr:hover {
    background-color: #f9f9f9;
}

.slots-table tbody tr input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #333;
}

.slots-table tbody tr input[type="date"],
.slots-table tbody tr input[type="time"] {
    color-scheme: light;
}

.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    min-width: 36px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .today-status {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .slots-table {
        font-size: 14px;
    }
    
    .slots-table th,
    .slots-table td {
        padding: 8px;
    }
    
    .slots-table th:nth-child(3),
    .slots-table td:nth-child(3),
    .slots-table th:nth-child(4),
    .slots-table td:nth-child(4) {
        max-width: 150px;
        word-wrap: break-word;
    }
    
    .slots-table th:nth-child(5),
    .slots-table td:nth-child(5) {
        max-width: 120px;
        word-wrap: break-word;
    }
    
    .add-button {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .today-status {
        padding: 12px;
    }
    
    .slots-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    .slots-table thead {
        display: none;
    }
    
    .slots-table tbody,
    .slots-table tr {
        display: block;
    }
    
    .slots-table tr {
        border: 1px solid #ddd;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 4px;
        background-color: white;
    }
    
    .slots-table td {
        display: block;
        border: none;
        padding: 8px 0;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
    
    .slots-table td:last-child {
        border-bottom: none;
    }
    
    .slots-table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        display: inline-block;
        min-width: 80px;
    }
    
    .slots-table td input {
        width: 100%;
        margin-top: 4px;
        font-size: 16px;
        background-color: white;
        color: #333;
    }
    
    .save-button, .cancel-button, .edit-button, .delete-button {
        padding: 10px 14px;
        font-size: 18px;
        min-width: 44px;
    }
}

