/* Material Design 3 Theme */
:root {
    --md-primary: #1976d2;
    --md-primary-variant: #004ba0;
    --md-secondary: #039be5;
    --md-background: #f5f5f5;
    --md-surface: #ffffff;
    --md-error: #d32f2f;
    --md-success: #388e3c;
    --md-on-primary: #ffffff;
    --md-on-surface: #000000;
    --md-on-background: #000000;
    --md-shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --md-shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --md-shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --md-radius: 12px;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--md-background);
    color: var(--md-on-background);
    line-height: 1.6;
}

/* Branch Selection Page */
.branch-selection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--md-primary);
}

.header p {
    font-size: 1.2rem;
    color: #666;
}

.branch-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.branch-card {
    background: var(--md-surface);
    border-radius: var(--md-radius);
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--md-shadow-1);
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--md-shadow-3);
}

.branch-icon {
    width: 80px;
    height: 80px;
    background: var(--md-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.branch-icon i {
    font-size: 40px;
    color: var(--md-on-primary);
}

.branch-card h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.branch-card p {
    color: #666;
    margin-bottom: 30px;
}

.select-button {
    background: var(--md-primary);
    color: var(--md-on-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.select-button:hover {
    background: var(--md-primary-variant);
}

/* Dashboard Page */
.app-bar {
    background: var(--md-primary);
    color: var(--md-on-primary);
    padding: 16px 0;
    box-shadow: var(--md-shadow-1);
}

.app-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-bar h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

.branch-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.stat-card {
    background: var(--md-surface);
    padding: 20px;
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--md-primary);
}

.stat-details {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Workers Stats */
.workers-stats {
    background: var(--md-surface);
    padding: 20px;
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
    margin-bottom: 30px;
}

.workers-stats h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.worker-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.worker-item:last-child {
    border-bottom: none;
}

/* Action Button */
.action-section {
    margin-bottom: 30px;
}

.fab {
    background: var(--md-secondary);
    color: var(--md-on-primary);
    border: none;
    padding: 16px 24px;
    border-radius: 28px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--md-shadow-2);
    transition: all 0.3s ease;
}

.fab:hover {
    box-shadow: var(--md-shadow-3);
    transform: translateY(-2px);
}

/* Washes Table */
.washes-section {
    background: var(--md-surface);
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
    overflow: hidden;
}

.section-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.washes-table {
    width: 100%;
    overflow-x: auto;
}

.washes-table table {
    width: 100%;
    border-collapse: collapse;
}

.washes-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
}

.washes-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.washes-table tr:hover {
    background: #f9f9f9;
}

.license-plate {
    color: var(--md-primary);
    cursor: pointer;
    text-decoration: none;
}

.license-plate:hover {
    text-decoration: underline;
}

.checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.edit-button {
    background: transparent;
    border: 1px solid var(--md-primary);
    color: var(--md-primary);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-button:hover {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--md-surface);
    border-radius: var(--md-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--md-shadow-3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
}

.close-button {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

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

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--md-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-primary {
    background: var(--md-primary);
    color: var(--md-on-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: var(--md-primary-variant);
}

.btn-secondary {
    background: transparent;
    color: var(--md-primary);
    border: 1px solid var(--md-primary);
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--md-primary);
    color: var(--md-on-primary);
}

/* Export Page */
.export-section {
    background: var(--md-surface);
    padding: 30px;
    border-radius: var(--md-radius);
    box-shadow: var(--md-shadow-1);
    max-width: 600px;
    margin: 0 auto;
}

.export-section h2 {
    margin-bottom: 20px;
}

.date-range {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .washes-table {
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .date-range {
        flex-direction: column;
    }
} 