/* Arco Cafe Tips Application - Styles */
:root {
    --rosso: #922721;
    --rosso-light: #A63D36;
    --giallo: #F3BE00;
    --verde: #008F74;
    --blu: #006B8F;
    --warm-white: #FFFEF9;
    --cream: #FFF8F0;
    --soft-black: #2C2C2C;
    --charcoal: #4A4A4A;
    --border: #E5E0DB;
    --shadow: rgba(146, 39, 33, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #FFF8F0; /* Fallback */
    background: -webkit-linear-gradient(315deg, #FFF8F0 0%, #FFFEF9 100%);
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    min-height: 100vh;
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--soft-black); font-weight: 600; }
.container { max-width: 800px; margin: 0 auto; padding: 20px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Welcome Greeting */
.welcome-greeting { font-size: 18px; color: var(--charcoal); margin-bottom: 20px; padding: 16px 20px; background: var(--warm-white); border-radius: 12px; border: 1px solid var(--border); }

/* Header */
.header { text-align: center; padding: 24px 20px; background: var(--warm-white); border-bottom: 1px solid var(--border); }
.logo { height: 50px; margin-bottom: 8px; display: block; margin-left: auto; margin-right: auto; }
.header-title { font-size: 14px; color: var(--rosso); font-weight: 500; }
.header-nav { display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; gap: 24px; margin-top: 16px; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.header-nav a { color: var(--charcoal); text-decoration: none; font-size: 14px; padding: 8px 16px; border-radius: 6px; -webkit-transition: all 0.2s; transition: all 0.2s; }
.header-nav a:hover, .header-nav a.active { background: var(--rosso); color: white; }

/* Cards */
.card { background: var(--warm-white); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px var(--shadow); border: 1px solid var(--border); position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 3px; background: var(--rosso); border-radius: 0 0 3px 3px; }
.card-title { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card-title svg { width: 22px; height: 22px; color: var(--rosso); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--soft-black); }
.form-input { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; font-family: inherit; transition: all 0.2s; background: white; }
.form-input:focus { outline: none; border-color: var(--rosso); box-shadow: 0 0 0 3px rgba(146, 39, 33, 0.1); }
.form-input:disabled { background: #f5f5f5; cursor: not-allowed; }
.form-error { color: #dc3545; font-size: 13px; margin-top: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--rosso); color: white; }
.btn-primary:hover { background: var(--rosso-light); transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--charcoal); border: 2px solid var(--border); }
.btn-secondary:hover { border-color: var(--rosso); color: var(--rosso); }
.btn-success { background: var(--verde); color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-submitted { background: var(--verde); opacity: 1 !important; }
.btn-submitted:hover { background: var(--verde); transform: none; }

/* Shift & Date Selectors */
.shift-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.shift-option { padding: 16px; border: 2px solid var(--border); border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s; background: white; position: relative; }
.shift-option:hover { border-color: var(--rosso); }
.shift-option.active { border-color: var(--rosso); background: rgba(146, 39, 33, 0.05); }
.shift-option.submitted::after { content: '✓'; position: absolute; top: 8px; right: 10px; font-size: 14px; color: var(--verde); font-weight: bold; }
.shift-icon { font-size: 24px; margin-bottom: 4px; }
.shift-name { font-weight: 600; color: var(--soft-black); margin-bottom: 8px; }

/* Shift Closed Toggle inside shift box */
.shift-closed-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 4px 10px; background: #f5f5f5; border-radius: 20px; font-size: 12px; transition: all 0.2s; }
.shift-closed-toggle:hover { background: #eee; }
.shift-closed-toggle input { display: none; }
.shift-closed-toggle .shift-closed-label { color: #888; font-weight: 500; }
.shift-closed-toggle input:checked + .shift-closed-label { color: var(--rosso); }
.shift-closed-toggle::before { content: ''; width: 14px; height: 14px; border: 2px solid #ccc; border-radius: 4px; transition: all 0.2s; }
.shift-closed-toggle:has(input:checked)::before { background: var(--rosso); border-color: var(--rosso); background-image: url("data:image/svg+xml,%3Csvg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E"); background-size: 10px; background-position: center; background-repeat: no-repeat; }

.date-selector { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 20px; }
.date-option { padding: 12px 8px; border: 2px solid var(--border); border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.2s; background: white; }
.date-option:hover { border-color: var(--rosso); }
.date-option.active { border-color: var(--rosso); background: var(--rosso); color: white; }
.date-option.today { border-color: var(--giallo); }
.date-weekday { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; }
.date-day { font-size: 18px; font-weight: 600; margin-top: 2px; }
.date-option.submitted::after { content: '✓'; display: block; font-size: 10px; color: var(--verde); margin-top: 2px; }
.date-option.active.submitted::after { color: white; }

/* Tips Input */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tips-field { position: relative; }
.tips-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--soft-black); }
.tips-input-wrapper { position: relative; }
.currency-symbol { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--charcoal); font-size: 18px; font-weight: 500; }
.tips-input { width: 100%; padding: 14px 14px 14px 32px; border: 2px solid var(--border); border-radius: 10px; font-size: 20px; font-family: inherit; font-weight: 600; transition: all 0.2s; }
.tips-input:focus { outline: none; border-color: var(--rosso); box-shadow: 0 0 0 3px rgba(146, 39, 33, 0.1); }

/* Employee Selection */
.employee-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.employee-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.2s; background: white; }
.employee-item:hover { border-color: var(--rosso); }
.employee-item.selected { border-color: var(--rosso); background: rgba(146, 39, 33, 0.05); }
.employee-checkbox { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.employee-item.selected .employee-checkbox { background: var(--rosso); border-color: var(--rosso); }
.employee-checkbox svg { width: 14px; height: 14px; color: white; opacity: 0; }
.employee-item.selected .employee-checkbox svg { opacity: 1; }
.employee-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: white; flex-shrink: 0; }
.employee-avatar.server { background: var(--verde); }
.employee-avatar.runner { background: var(--blu); }
.employee-avatar.busboy { background: var(--giallo); color: var(--soft-black); }
.employee-name { font-weight: 500; color: var(--soft-black); font-size: 14px; }

/* Closure Toggle */
.closure-wrapper { margin-bottom: 20px; padding: 16px; background: #FFF8F0; border: 2px solid var(--giallo); border-radius: 12px; }
.closure-title { font-weight: 600; color: var(--charcoal); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.closure-title svg { width: 18px; height: 18px; color: var(--rosso); }
.closure-options { display: flex; flex-direction: column; gap: 12px; }
.closure-toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 10px 12px; background: white; border-radius: 8px; border: 1px solid var(--border); transition: all 0.2s; }
.closure-toggle:hover { border-color: var(--rosso); }
.closure-toggle.active { border-color: var(--rosso); background: rgba(146, 39, 33, 0.05); }
.toggle-switch { position: relative; width: 44px; height: 24px; background: #DDD; border-radius: 12px; transition: all 0.3s; flex-shrink: 0; }
.toggle-switch::after { content: ''; position: absolute; width: 18px; height: 18px; background: white; border-radius: 50%; top: 3px; left: 3px; transition: all 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.closure-toggle.active .toggle-switch { background: var(--rosso); }
.closure-toggle.active .toggle-switch::after { left: 23px; }
.toggle-label-main { font-weight: 600; color: var(--charcoal); font-size: 14px; }
.toggle-label-sub { font-size: 11px; color: #888; margin-top: 2px; }
.shift-indicator { display: inline-flex; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-left: 4px; }
.shift-indicator.lunch { background: rgba(0, 143, 116, 0.15); color: var(--verde); }
.shift-indicator.dinner { background: rgba(146, 39, 33, 0.15); color: var(--rosso); }
.closed-state { opacity: 0.5; pointer-events: none; }
.closed-badge { display: none; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(146, 39, 33, 0.1); border-radius: 10px; color: var(--rosso); font-weight: 600; }
.closed-badge svg { width: 20px; height: 20px; }
.card.closed-state .closed-badge { display: flex; }
.card.closed-state .tips-grid, .card.closed-state .employee-list { display: none; }

/* Dashboard */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.week-nav { display: flex; align-items: center; gap: 16px; }
.week-nav-btn { padding: 8px 12px; border: 2px solid var(--border); border-radius: 8px; background: white; cursor: pointer; transition: all 0.2s; text-decoration: none; color: var(--charcoal); }
.week-nav-btn:hover { border-color: var(--rosso); color: var(--rosso); }
.week-label { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--soft-black); }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary-card { background: var(--warm-white); border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.summary-card.highlight { background: var(--rosso); color: white; border-color: var(--rosso); }
.summary-label { font-size: 13px; opacity: 0.8; margin-bottom: 4px; }
.summary-value { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 600; }

/* Tables */
.shifts-table { width: 100%; border-collapse: collapse; background: var(--warm-white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px var(--shadow); }
.shifts-table th, .shifts-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.shifts-table th { background: var(--cream); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--charcoal); }
.shifts-table tr:last-child td { border-bottom: none; }
.shifts-table tr:hover td { background: rgba(146, 39, 33, 0.02); }
.status-badge { display: inline-flex; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-badge.submitted { background: rgba(0, 143, 116, 0.15); color: var(--verde); }
.status-badge.pending { background: rgba(0, 0, 0, 0.08); color: #888; }
.status-badge.closed { background: rgba(146, 39, 33, 0.15); color: var(--rosso); }
.employees-cell { display: flex; gap: 4px; }
.employee-mini { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: white; margin-left: -8px; border: 2px solid var(--warm-white); background: var(--verde); }
.employee-mini:first-child { margin-left: 0; }
.employee-mini.server { background: var(--verde); }
.employee-mini.runner { background: var(--blu); }
.employee-mini.busboy { background: var(--giallo); color: var(--soft-black); }
.employees-table { width: 100%; border-collapse: collapse; }
.employees-table th, .employees-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.position-badge { display: inline-flex; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.position-badge.server { background: rgba(0, 143, 116, 0.15); color: var(--verde); }
.position-badge.runner { background: rgba(0, 107, 143, 0.15); color: var(--blu); }
.position-badge.busboy { background: rgba(243, 190, 0, 0.25); color: #8B6914; }

/* Modal */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--warm-white); border-radius: 16px; padding: 32px; max-width: 450px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.modal-icon { width: 56px; height: 56px; background: #FFF3E0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.modal-icon svg { width: 28px; height: 28px; color: #F57C00; }
.modal-icon.error { background: rgba(146, 39, 33, 0.15); }
.modal-icon.error svg { color: var(--rosso); }
.modal-icon.success { background: rgba(0, 143, 116, 0.15); }
.modal-icon.success svg { color: var(--verde); }
.modal-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.modal-message { text-align: center; color: #666; margin-bottom: 28px; line-height: 1.6; }
.modal-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-buttons.single { grid-template-columns: 1fr; }

/* Toast */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--verde); color: white; padding: 16px 28px; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-weight: 500; box-shadow: 0 8px 30px rgba(0, 143, 116, 0.3); opacity: 0; transition: all 0.3s ease; z-index: 1001; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--rosso); box-shadow: 0 8px 30px rgba(146, 39, 33, 0.3); }
.toast svg { width: 20px; height: 20px; }

/* Footer */
.footer { text-align: center; padding: 24px; font-size: 11px; color: #AAA; }

/* Login */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--warm-white); border-radius: 20px; padding: 40px; max-width: 400px; width: 100%; box-shadow: 0 10px 40px var(--shadow); text-align: center; }
.login-logo { height: 60px; margin-bottom: 8px; }
.login-subtitle { color: var(--rosso); font-size: 14px; margin-bottom: 32px; }
.login-title { font-size: 24px; margin-bottom: 24px; }
.passcode-input { width: 100%; padding: 18px; font-size: 32px; text-align: center; letter-spacing: 16px; border: 2px solid var(--border); border-radius: 12px; font-family: inherit; font-weight: 600; }
.passcode-input:focus { outline: none; border-color: var(--rosso); }
.passcode-hint { font-size: 13px; color: #888; margin-top: 12px; }
.login-error { background: rgba(220, 53, 69, 0.1); color: #dc3545; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.admin-link { margin-top: 24px; font-size: 13px; }
.admin-link a { color: var(--rosso); text-decoration: none; }

/* My Tips - Employee Weekly View */
.week-nav-header { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 24px; }
.week-nav-header .week-nav-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); border-radius: 50%; background: white; text-decoration: none; color: var(--charcoal); font-weight: 600; transition: all 0.2s; }
.week-nav-header .week-nav-btn:hover { border-color: var(--rosso); color: var(--rosso); }
.week-nav-header .week-label { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--soft-black); }

.my-tips-total { background: var(--rosso); color: white; border-radius: 16px; padding: 24px; text-align: center; margin-bottom: 12px; }
.my-tips-total-label { font-size: 14px; opacity: 0.9; margin-bottom: 4px; }
.my-tips-total-value { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 42px; font-weight: 600; }
.pre-tax-label { font-size: 12px; opacity: 0.8; font-weight: 400; }

/* Tax Disclaimer */
.tax-disclaimer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; background: #FFF8F0; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; font-size: 13px; color: #666; }
.tax-disclaimer svg { width: 16px; height: 16px; color: #888; flex-shrink: 0; }

.my-tips-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.my-tips-day { background: var(--warm-white); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.my-tips-day.no-data { opacity: 0.5; }
.my-tips-day-header { margin-bottom: 8px; }
.my-tips-day-name { font-size: 11px; text-transform: uppercase; color: #888; letter-spacing: 0.5px; }
.my-tips-day-num { font-size: 18px; font-weight: 600; color: var(--soft-black); }
.my-tips-day-total { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; color: var(--rosso); margin-bottom: 8px; }
.my-tips-day-empty { color: #CCC; font-size: 20px; padding: 20px 0; }

.my-tips-shifts { display: flex; flex-direction: column; gap: 8px; }
.my-tips-shift { background: #F9F9F7; border-radius: 8px; padding: 8px; }
.my-tips-shift-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.my-tips-shift-icon { font-size: 12px; }
.my-tips-shift-amount { font-weight: 600; font-size: 13px; color: var(--soft-black); }
.my-tips-shift-team { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.my-tips-shift-team .employee-mini { width: 22px; height: 22px; font-size: 9px; margin: 0; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .container { padding: 16px; }
    .container-wide { padding: 16px; }
    
    /* Header */
    .header { padding: 16px; }
    .logo { height: 40px; }
    .header-title { font-size: 12px; }
    .header-nav { gap: 8px; flex-wrap: wrap; }
    .header-nav a { padding: 8px 12px; font-size: 13px; }
    
    /* Cards */
    .card { padding: 16px; border-radius: 12px; }
    .card::before { left: 12px; right: 12px; }
    .card-title { font-size: 16px; }
    
    /* Date selector */
    .date-selector { grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .date-option { padding: 8px 4px; border-radius: 8px; }
    .date-weekday { font-size: 9px; }
    .date-day { font-size: 14px; }
    
    /* Tips input */
    .tips-grid { grid-template-columns: 1fr; gap: 12px; }
    .tips-input { font-size: 18px; padding: 12px 12px 12px 28px; }
    .currency-symbol { font-size: 16px; left: 12px; }
    
    /* Employee list */
    .employee-list { grid-template-columns: 1fr 1fr; gap: 8px; }
    .employee-item { padding: 10px; }
    .employee-avatar { width: 28px; height: 28px; font-size: 12px; }
    .employee-name { font-size: 13px; }
    .employee-checkbox { width: 20px; height: 20px; }
    
    /* Closure */
    .closure-wrapper { padding: 12px; }
    .closure-toggle { padding: 10px; }
    .toggle-switch { width: 40px; height: 22px; }
    .toggle-switch::after { width: 16px; height: 16px; }
    .closure-toggle.active .toggle-switch::after { left: 21px; }
    
    /* Dashboard */
    .dashboard-header { flex-direction: column; align-items: stretch; gap: 12px; }
    .dashboard-header h1 { font-size: 22px; text-align: center; }
    .week-nav { justify-content: center; }
    .week-label { font-size: 16px; }
    .summary-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .summary-card { padding: 14px; border-radius: 10px; }
    .summary-label { font-size: 11px; }
    .summary-value { font-size: 22px; }
    
    /* Tables */
    .shifts-table { font-size: 13px; }
    .shifts-table th, .shifts-table td { padding: 10px 8px; }
    .employees-table th, .employees-table td { padding: 10px 8px; }
    
    /* My Tips */
    .my-tips-days { grid-template-columns: repeat(7, 1fr); gap: 4px; }
    .my-tips-day { padding: 8px 4px; border-radius: 8px; }
    .my-tips-day-name { font-size: 9px; }
    .my-tips-day-num { font-size: 14px; }
    .my-tips-day-total { font-size: 16px; }
    .my-tips-day-empty { font-size: 16px; padding: 10px 0; }
    .my-tips-shift { padding: 6px; }
    .my-tips-shift-team .employee-mini { width: 18px; height: 18px; font-size: 8px; border-width: 1px; }
    .my-tips-total { padding: 20px 16px; border-radius: 12px; }
    .my-tips-total-value { font-size: 36px; }
    .week-nav-header .week-label { font-size: 16px; }
    
    /* Buttons */
    .btn { padding: 12px 20px; font-size: 15px; }
    .btn-sm { padding: 8px 12px; font-size: 13px; }
    
    /* Forms */
    .form-input { padding: 12px 14px; font-size: 16px; }
    
    /* Modal */
    .modal { padding: 24px; margin: 16px; }
    .modal-title { font-size: 20px; }
    .modal-buttons { gap: 8px; }
}

@media (max-width: 480px) {
    .container { padding: 12px; }
    
    /* Header */
    .header { padding: 12px; }
    .logo { height: 36px; }
    .header-nav { gap: 4px; margin-top: 12px; }
    .header-nav a { padding: 6px 10px; font-size: 12px; }
    
    /* Date selector - stack days */
    .date-selector { grid-template-columns: repeat(7, 1fr); gap: 3px; }
    .date-option { padding: 6px 2px; }
    .date-weekday { font-size: 8px; }
    .date-day { font-size: 12px; }
    
    /* Employee list */
    .employee-list { grid-template-columns: 1fr; gap: 6px; }
    
    /* Summary cards */
    .summary-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
    .summary-card { padding: 12px; }
    .summary-value { font-size: 20px; }
    
    /* My Tips */
    .my-tips-days { grid-template-columns: repeat(7, 1fr); gap: 3px; }
    .my-tips-day { padding: 6px 2px; }
    .my-tips-day-name { font-size: 8px; }
    .my-tips-day-num { font-size: 12px; }
    .my-tips-day-total { font-size: 14px; margin-bottom: 4px; }
    .my-tips-shifts { gap: 4px; }
    .my-tips-shift { padding: 4px; }
    .my-tips-shift-header { margin-bottom: 4px; }
    .my-tips-shift-icon { font-size: 10px; }
    .my-tips-shift-amount { font-size: 11px; }
    .my-tips-shift-team .employee-mini { width: 16px; height: 16px; font-size: 7px; }
    .my-tips-total-value { font-size: 32px; }
    
    /* Modal */
    .modal-buttons { grid-template-columns: 1fr; }
    
    /* Tables - horizontal scroll */
    .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px; }
    .shifts-table, .employees-table { min-width: 500px; }
    
    /* Shift selector */
    .shift-selector { gap: 8px; }
    .shift-option { padding: 12px; }
    .shift-icon { font-size: 20px; }
    .shift-name { font-size: 14px; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 48px; }
    .form-input { min-height: 48px; }
    .employee-item { min-height: 48px; }
    .date-option { min-height: 60px; }
    .shift-option { min-height: 70px; }
    .closure-toggle { min-height: 52px; }
    .header-nav a { min-height: 40px; display: flex; align-items: center; }
}

/* Safe area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .toast { bottom: calc(30px + env(safe-area-inset-bottom)); }
}
