/* Restaurant Staff Rota Styles */

.rota-view {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rota-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--brand-color, #2196F3);
}

.restaurant-logo {
    max-height: 80px;
    margin-bottom: 10px;
}

.rota-header h2 {
    color: var(--brand-color, #2196F3);
    margin: 10px 0;
    font-size: 28px;
}

.week-info {
    color: #666;
    font-size: 16px;
    margin: 5px 0;
}

.rota-schedule {
    display: grid;
    gap: 20px;
}

.day-schedule {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid var(--brand-color, #2196F3);
}

.day-schedule h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.shifts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shift {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.shift:hover {
    transform: translateX(2px);
}

.staff-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.shift-time {
    color: var(--brand-color, #2196F3);
    font-weight: 500;
    background: rgba(33, 150, 243, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
}

.no-shifts {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.rota-password-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.rota-password-form h3 {
    color: #333;
    margin-bottom: 20px;
}

.rota-password-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin: 10px 0;
}

.rota-password-form input[type="submit"] {
    background: var(--brand-color, #2196F3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.rota-password-form input[type="submit"]:hover {
    background: rgba(33, 150, 243, 0.9);
}

/* Admin Styles */
.rota-meta-container {
    margin: 15px 0;
}

.shift-row {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.shift-row input,
.shift-row select {
    margin: 0 5px;
}

.shift-row label {
    font-weight: 600;
    margin: 0 5px 0 15px;
}

.shift-row label:first-of-type {
    margin-left: 0;
}

.remove-shift {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.sharing-options input[type="text"] {
    font-family: monospace;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rota-view {
        margin: 10px;
        padding: 15px;
    }
    
    .rota-header h2 {
        font-size: 24px;
    }
    
    .shift {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .shift-time {
        align-self: flex-end;
    }
    
    .day-schedule {
        padding: 12px;
    }
    
    .shift-row {
        padding: 10px;
    }
    
    .shift-row input,
    .shift-row select {
        margin: 2px 0;
        display: block;
        width: 100%;
        max-width: 150px;
    }
    
    .shift-row label {
        display: block;
        margin: 8px 0 2px 0;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .rota-view {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .shift:hover {
        transform: none;
    }
    
    .rota-password-form {
        display: none;
    }
}