/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #7f8c8d;
}

.last-updated {
    font-size: 14px;
    color: #95a5a6;
    margin-top: 10px;
}

/* Staff interface - Tables grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.table-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
    text-align: center;
}

.table-card.occupied {
    border-left-color: #e74c3c;
}

.table-card.empty {
    border-left-color: #27ae60;
    background-color: #f8f9fa;
}

.table-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.table-info p {
    margin-bottom: 5px;
    color: #7f8c8d;
}

.status {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

/* Manager interface - Empty tables list */
.empty-tables-list {
    margin-bottom: 30px;
}

.empty-table-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #f39c12;
}

.table-details h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.table-details p {
    color: #7f8c8d;
    margin-bottom: 3px;
}

.duration {
    font-weight: bold;
    color: #e67e22;
}

.no-tables {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-tables h2 {
    color: #27ae60;
    margin-bottom: 10px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-empty {
    background-color: #27ae60;
    color: white;
}

.btn-empty:hover {
    background-color: #229954;
}

.btn-fill {
    background-color: #3498db;
    color: white;
}

.btn-fill:hover {
    background-color: #2980b9;
}

.btn-disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
}

.btn-nav {
    background-color: #34495e;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
}

.btn-nav:hover {
    background-color: #2c3e50;
}

/* Navigation */
.navigation {
    text-align: center;
    padding: 20px;
}

/* Login form styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-form {
    padding: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.btn-login {
    background-color: #3498db;
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #2980b9;
}

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

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

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

/* Update header to accommodate logout button */
.container {
    position: relative;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tables-grid {
        grid-template-columns: 1fr;
    }
    
    .empty-table-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .login-container {
        margin: 20px auto;
    }
    
    .logout-btn {
        position: static;
        display: block;
        margin: 10px auto;
        width: fit-content;
    }
} 