/* iOS 26 tasarım tokens — Tailwind arbitrary-value'ları bu değişkenlerden besler.
   Değerler eski gastfood-pos/assets/css/style.css'ten taşındı ve genişletildi. */

:root {
    --bg:             #f2f2f7;
    --surface:        rgba(255, 255, 255, 0.70);
    --surface-strong: rgba(255, 255, 255, 0.85);
    --surface-sunken: rgba(0, 0, 0, 0.03);

    --text-primary:   #1c1c1e;
    --text-secondary: #8e8e93;
    --text-muted:     #aeaeb2;
    --hairline:       rgba(60, 60, 67, 0.10);
    --hairline-strong:rgba(60, 60, 67, 0.18);

    /* Durum renkleri (pastel) */
    --status-empty:       #a8e6cf;
    --status-empty-fg:    #2d6a4f;
    --status-occupied:    #ffccb6;
    --status-occupied-fg: #b04e0f;
    --status-selected:    #a3cfff;
    --status-selected-fg: #004b99;
    --status-danger:      #ffb4b4;
    --status-danger-fg:   #a41010;

    /* Rol vurguları */
    --role-waiter:  #a3cfff;
    --role-cashier: #a8e6cf;
    --role-kitchen: #ffd8a3;
    --role-admin:   #d0bfff;

    /* Radius */
    --r-xs: 12px;
    --r-sm: 16px;
    --r:    24px;
    --r-lg: 32px;

    /* Gölge */
    --shadow-glass:    0 8px 32px rgba(0, 0, 0, 0.04);
    --shadow-glass-lg: 0 12px 48px rgba(0, 0, 0, 0.08);

    /* Motion */
    --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    overscroll-behavior: none;
}

/* Bileşen stilleri */
.glass {
    background: var(--surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    box-shadow: var(--shadow-glass);
}

.glass-strong {
    background: var(--surface-strong);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    box-shadow: var(--shadow-glass);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    transition: transform 180ms var(--spring), background-color 180ms var(--spring);
}

.pill:active { transform: scale(0.97); }

.btn-primary {
    background: var(--status-selected);
    color: var(--status-selected-fg);
    border: none;
    padding: 14px 20px;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms var(--spring), opacity 180ms var(--spring);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.input {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    transition: border-color 180ms var(--spring), box-shadow 180ms var(--spring);
    width: 100%;
    font-family: inherit;
    color: var(--text-primary);
}
.input:focus {
    border-color: var(--status-selected);
    box-shadow: 0 0 0 4px rgba(163, 207, 255, 0.30);
}

.label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.alert-danger {
    background: rgba(255, 180, 180, 0.45);
    color: var(--status-danger-fg);
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.role-chip-waiter  { background: var(--role-waiter);  color: #004b99; }
.role-chip-cashier { background: var(--role-cashier); color: #2d6a4f; }
.role-chip-kitchen { background: var(--role-kitchen); color: #8a4a00; }
.role-chip-admin   { background: var(--role-admin);   color: #4a2b8a; }

/* Dynamic Island tarzı yüzen bilgi pill'i — garson ekranında kullanılacak */
.dynamic-island {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.20);
    z-index: 50;
    transition: all 300ms var(--spring);
}

/* Ambient gradient backdrop */
.ambient-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 600px at 50% -10%, #E0ECFF, transparent),
        radial-gradient(800px 500px at 90% 110%, #FFE4D6, transparent);
    pointer-events: none;
}
