/* ===========================================
   Oliebollen Costa Blanca - Mobile First CSS
   =========================================== */

:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --secondary: #2c3e50;
    --success: #27ae60;
    --success-dark: #1e8449;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --white: #ffffff;
    --gray-100: #f7f7f7;
    --gray-200: #eeeeee;
    --gray-300: #dddddd;
    --gray-500: #999999;
    --gray-700: #555555;
    --gray-900: #222222;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Header / Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 16px 12px 24px 12px;
    text-align: center;
}

.hero h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.hero .tagline {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 4px;
}

.hero .tagline .location-link {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.hero .tagline .location-link:hover {
    opacity: 0.8;
}

.hero .subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Info button in hero */
.hero .container {
    position: relative;
    padding-top: 40px;
}

.info-btn {
    position: absolute;
    top: 0;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: bold;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.info-btn:active {
    transform: scale(0.95);
}

/* Welcome Back Banner (for returning customers) */
.welcome-back-banner {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 12px 16px;
    text-align: center;
}

.welcome-back-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.welcome-back-banner strong {
    font-weight: 600;
}

/* Order Form Section */
.order-section {
    margin: -20px 0 24px 0;
    position: relative;
    z-index: 10;
}

.order-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    margin: 0;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
    user-select: none;
}

.step:hover {
    opacity: 0.6;
}

.step.active, .step.completed {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-300);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    transition: background 0.3s;
}

.step.active .step-number {
    background: var(--primary);
}

.step.completed .step-number {
    background: var(--success);
}

.step-label {
    font-size: 0.65rem;
    color: var(--gray-500);
    text-align: center;
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.step-description {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Product Cards */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.product-card {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 6px;
}

.product-price {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 4px 0;
    margin-top: 8px;
    border-top: 1px solid var(--gray-300);
}

.qty-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: var(--white);
}

.product-quantity input {
    width: 60px;
    height: 48px;
    text-align: center;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--white);
}

/* Order Summary Mini */
.order-summary-mini {
    background: var(--secondary);
    color: var(--white);
    padding: 16px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.total-price {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Timeslot Grid */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.timeslot {
    padding: 14px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--white);
}

.timeslot:active {
    transform: scale(0.98);
}

.timeslot.selected {
    border-color: var(--primary);
    background: rgba(230, 126, 34, 0.1);
}

.timeslot.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--gray-200);
}

.timeslot-time {
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary);
}

.timeslot-spots {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.timeslot.unavailable .timeslot-spots {
    color: var(--danger);
}

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

/* Review Section */
.order-review {
    margin-bottom: 20px;
}

.review-section {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.review-section h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.review-section p {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.review-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--gray-300);
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.review-notes {
    font-style: italic;
    color: var(--gray-500);
}

.payment-notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid var(--warning);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.payment-notice p {
    margin-bottom: 4px;
}

/* Buttons */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:active:not(:disabled) {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--secondary);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:active:not(:disabled) {
    background: var(--success-dark);
}

/* Confirmation */
.confirmation {
    text-align: center;
    padding: 20px 0;
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.confirmation h2 {
    color: var(--success);
    margin-bottom: 8px;
}

.confirmation > p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

.confirmation-details {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.confirmation-details p {
    margin-bottom: 8px;
    font-size: 1rem;
}

.confirmation-qr {
    margin: 24px 0;
}

.confirmation-qr canvas,
.confirmation-qr img {
    max-width: 200px;
    border-radius: var(--radius-sm);
}

.confirmation-info {
    text-align: left;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.confirmation-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 16px;
}

.confirmation-info h3:first-child {
    margin-top: 0;
}

.confirmation-info ul {
    padding-left: 20px;
}

.confirmation-info li {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

/* Save Actions on Confirmation */
.save-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.save-actions .btn {
    padding: 16px 20px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-download {
    background: var(--secondary);
    color: var(--white);
}

.btn-download:active {
    background: #1a252f;
}

/* Social Share Buttons */
.social-share {
    margin: 24px 0;
    text-align: center;
}

.social-share p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

.share-icon {
    font-size: 1.1rem;
}

/* Info Section */
.info-section {
    margin: 32px 0;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.info-card h3 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--secondary);
}

.info-card p {
    font-size: 0.75rem;
    color: var(--gray-500);
    line-height: 1.4;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 24px 16px;
    text-align: center;
    margin-top: 32px;
}

footer p {
    font-size: 0.85rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

/* ===========================
   Admin Panel Styles
   =========================== */

/* Login Overlay */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1a252f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.login-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 32px 24px;
    text-align: center;
}

.login-header h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.95rem;
}

.login-form {
    padding: 32px 24px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.login-form input[type="password"],
.login-form input[type="email"],
.login-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s;
}

.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

/* Token code input - larger centered text */
.login-form input#loginToken {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 8px;
    font-weight: 600;
}

.login-info {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.token-info {
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.5;
}

.token-info strong {
    color: var(--secondary);
    display: block;
    margin-top: 4px;
}

.btn-back {
    width: 100%;
    margin-top: 12px;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
}

.login-error {
    margin-top: 16px;
    padding: 12px;
    background: #fdecea;
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    color: var(--danger);
    text-align: center;
    font-size: 0.9rem;
}

/* Admin Content Wrapper */
.admin-content-wrapper {
    min-height: 100vh;
}

/* Admin Header */
.admin-header {
    background: var(--secondary);
    color: var(--white);
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-logout {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.admin-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.admin-nav button {
    padding: 10px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 20px;
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-nav button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.admin-content {
    padding: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .admin-content {
        padding: 24px 32px;
    }
}

@media (min-width: 1600px) {
    .admin-content {
        max-width: 1600px;
    }
}

/* Order Cards (Admin) */
.order-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    overflow: hidden;
}

.order-card-header {
    background: var(--gray-100);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
}

.order-number {
    font-weight: 700;
    color: var(--secondary);
}

.order-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.noshow {
    background: #f8d7da;
    color: #721c24;
}

.order-card-body {
    padding: 16px;
}

.order-customer {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.order-items {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.order-actions {
    display: flex;
    gap: 8px;
}

.order-actions .btn {
    flex: 1;
    padding: 12px;
    font-size: 0.9rem;
}

/* Calculator */
.calculator {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.calculator h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    text-align: center;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.calc-row:last-of-type {
    border-bottom: none;
}

.calc-label {
    font-size: 0.95rem;
    color: var(--gray-700);
}

.calc-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.calc-value.total {
    color: var(--secondary);
}

.calc-value.change {
    color: var(--success);
    font-size: 1.5rem;
}

.calc-value.negative {
    color: var(--danger);
}

.calc-input {
    width: 120px;
    padding: 12px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: right;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-dark);
}

/* Quick amount buttons */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.quick-amount-btn {
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.quick-amount-btn:active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Scanner */
.scanner-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.scanner-video {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gray-900);
    display: block;
}

.scanner-overlay {
    padding: 16px;
    text-align: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow);
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Capacity Settings */
.capacity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capacity-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.capacity-time {
    font-weight: 600;
}

.capacity-input {
    width: 80px;
    padding: 8px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    text-align: center;
}

.capacity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.capacity-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    flex: 1;
    margin: 0 12px;
}

.capacity-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s;
}

.capacity-fill.warning {
    background: var(--warning);
}

.capacity-fill.full {
    background: var(--danger);
}

/* Global Capacity Section */
.global-capacity {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.global-capacity h3 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

.capacity-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.capacity-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
}

.product-label {
    font-size: 1rem;
    font-weight: 600;
    min-width: 90px;
}

.global-capacity-input {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.global-capacity-input:focus {
    outline: none;
    border-color: var(--primary);
}

.capacity-unit {
    font-size: 0.85rem;
    color: var(--gray-600);
    flex: 1;
}

.total-stats {
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-top: 16px;
}

.timeslots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeslot-bars {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.timeslot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.timeslot-time {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
}

.timeslot-orders {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.product-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-bar-row .capacity-bar {
    flex: 1;
    height: 12px;
    margin: 0;
}

.bar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 50px;
    text-align: right;
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .hero {
        padding: 12px 8px 20px 8px;
    }

    .hero .container {
        padding-top: 36px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .info-btn {
        right: 8px;
        width: 36px;
        height: 36px;
    }

    .info-btn svg {
        width: 20px;
        height: 20px;
    }

    .order-form {
        padding: 12px;
        border-radius: 8px;
    }

    .step-indicator {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .product-card {
        padding: 10px;
        gap: 10px;
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .qty-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .product-quantity {
        gap: 10px;
        padding: 10px 0 4px 0;
        margin-top: 6px;
    }

    .product-quantity input {
        width: 56px;
        height: 44px;
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .total-summary {
        padding: 14px;
    }

    h2 {
        font-size: 1.3rem;
    }

    .timeslot-grid {
        gap: 8px;
    }

    .timeslot {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

/* Standard mobile devices (360px - 600px) */
@media (min-width: 361px) and (max-width: 599px) {
    .order-form {
        padding: 18px;
    }

    .product-card {
        padding: 14px;
    }
}

/* Tablet improvements */
@media (min-width: 600px) {
    .container {
        max-width: 700px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .order-form {
        padding: 32px;
        margin: 0 16px;
    }

    .product-card {
        padding: 20px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-quantity {
        border-top: none;
        padding: 0;
        margin-top: 0;
    }

    .qty-btn {
        width: 48px;
        height: 48px;
    }

    .product-quantity input {
        width: 60px;
        height: 48px;
        font-size: 1.2rem;
    }

    .timeslot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Larger tablets / landscape */
@media (min-width: 900px) {
    .container {
        max-width: 800px;
    }

    .timeslot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print styles for order lists */
@media print {
    .admin-header,
    .admin-nav,
    .order-actions,
    .btn {
        display: none !important;
    }

    .order-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ===========================
   Additional Admin Styles
   =========================== */
.admin-body {
    background: var(--gray-100);
}

.admin-tab {
    display: none;
}

.admin-tab.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Connection status indicator */
.connection-status {
    font-size: 1.2rem;
}

/* Manual lookup */
.manual-lookup {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
}

.manual-lookup h3 {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.lookup-form {
    display: flex;
    gap: 8px;
}

.lookup-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

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

/* Autocomplete */
.autocomplete-container {
    position: relative;
    flex: 1;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-lg);
}

.autocomplete-results.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.15s;
}

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

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--gray-100);
}

.autocomplete-item-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.autocomplete-order-number {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.autocomplete-customer {
    color: var(--gray-700);
}

.autocomplete-item-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.autocomplete-timeslot {
    color: var(--gray-600);
}

.autocomplete-total {
    font-weight: 500;
    color: var(--gray-700);
}

.autocomplete-status {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.autocomplete-status.pending {
    background: var(--warning);
    color: #000;
}

.autocomplete-status.completed {
    background: var(--success);
    color: white;
}

.autocomplete-status.noshow {
    background: var(--danger);
    color: white;
}

.autocomplete-no-results {
    padding: 16px;
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
}

/* Order display after scan */
.order-display .calculator {
    margin-top: 16px;
    background: #fffbf0;
    border: 2px solid var(--warning);
}

/* Orders filter */
.orders-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 16px; /* Prevent iOS zoom */
    background: var(--white);
}

/* Orders summary bar */
.orders-summary {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.summary-item {
    flex: 1;
    text-align: center;
}

.summary-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Timeslot overview section */
.timeslot-overview-section {
    margin-bottom: 24px;
}

.timeslot-overview-section h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.timeslot-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.timeslot-overview-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
    cursor: pointer;
}

.timeslot-overview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary-dark, #1a252f);
}

.timeslot-overview-card:active {
    transform: translateY(-1px);
}

.timeslot-overview-card.full {
    border-left-color: var(--danger);
    background: #fff5f5;
}

.timeslot-overview-card.near-full {
    border-left-color: var(--warning);
    background: #fffbf0;
}

.timeslot-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.timeslot-time {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.timeslot-order-count {
    font-size: 0.9rem;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 10px;
    border-radius: 12px;
}

.timeslot-products {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.product-name-small {
    color: var(--gray-600);
}

.product-count-small {
    font-weight: 600;
    color: var(--dark);
}

.timeslot-capacity-bar {
    margin-top: 10px;
}

.capacity-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.capacity-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.capacity-bar-fill {
    height: 100%;
    background: var(--success);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.capacity-bar-fill.warning {
    background: var(--warning);
}

.capacity-bar-fill.danger {
    background: var(--danger);
}

.order-timeslot {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.completed-label {
    color: var(--success);
    font-weight: 600;
}

.no-orders {
    text-align: center;
    padding: 40px;
    color: var(--gray-500);
}

/* Capacity page */
.capacity-header {
    margin-bottom: 20px;
}

.capacity-header h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.capacity-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.capacity-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.capacity-actions .btn {
    flex: none;
    padding: 10px 16px;
}

.capacity-actions .capacity-input {
    width: 70px;
}

.capacity-booked {
    font-size: 0.85rem;
    color: var(--gray-500);
    min-width: 50px;
    text-align: right;
}

.capacity-save {
    margin-top: 20px;
    text-align: center;
}

/* Totals page */
.totals-header {
    margin-bottom: 20px;
}

.totals-header h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.totals-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.product-totals {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.product-totals h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.product-total-card {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}

.product-total-card:last-child {
    border-bottom: none;
}

.product-name {
    color: var(--gray-700);
}

.product-count {
    font-weight: 600;
    color: var(--primary);
}

.per-timeslot-totals {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.per-timeslot-totals h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--secondary);
}

.timeslot-total-card {
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.timeslot-total-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.timeslot-total-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.export-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 400px;
    width: 100%;
}

.modal-content h3 {
    margin-bottom: 12px;
}

.modal-customer {
    background: var(--gray-100);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.modal-actions .btn {
    flex: 1;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.whatsapp-action {
    text-align: center;
}

.whatsapp-action .btn {
    display: inline-block;
    text-decoration: none;
}

/* QR Reader styling */
#qr-reader {
    width: 100%;
}

#qr-reader video {
    width: 100% !important;
    border-radius: var(--radius-sm);
}

#qr-reader__scan_region {
    background: var(--gray-900);
}

#qr-reader__dashboard {
    padding: 8px !important;
}

/* Offline indicator */
.offline::after {
    content: 'Offline mode';
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

/* Timeslot Status Indicator */
.timeslot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.timeslot-status-icon {
    font-size: 1.3rem;
}

/* On time - green */
.timeslot-status.ontime {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid var(--success);
    color: #155724;
}

/* Almost time / just ended - blue info */
.timeslot-status.almost,
.timeslot-status.justended {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: 2px solid #17a2b8;
    color: #0c5460;
}

/* Early - orange warning */
.timeslot-status.early {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--warning);
    color: #856404;
}

.timeslot-status.early.severe {
    background: linear-gradient(135deg, #ffe6cc 0%, #ffd699 100%);
    border: 2px solid var(--primary);
    color: #8a5a00;
    animation: pulse-warning 1.5s infinite;
}

/* Late - red danger */
.timeslot-status.late {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid var(--danger);
    color: #721c24;
}

.timeslot-status.late.severe {
    background: linear-gradient(135deg, #f5c6cb 0%, #f1b0b7 100%);
    border: 3px solid var(--danger);
    color: #721c24;
    animation: pulse-danger 1s infinite;
}

/* Unknown */
.timeslot-status.unknown {
    background: var(--gray-200);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

/* Pulse animations for severe cases */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(243, 156, 18, 0);
    }
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

/* Import Section */
.import-section {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.import-section h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--secondary);
}

.import-section > p {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.import-section .btn {
    width: 100%;
    margin-bottom: 8px;
}

.import-hint {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
}

/* Import Progress Modal */
.import-progress {
    text-align: center;
    padding: 20px 0;
}

.import-progress .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.import-results {
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    margin-top: 16px;
}

.import-result-item {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.import-result-item.success {
    background: #d4edda;
    color: #155724;
}

.import-result-item.error {
    background: #f8d7da;
    color: #721c24;
}

.import-summary {
    background: var(--gray-100);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 16px;
    font-weight: 600;
}

/* Drawer Component */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 400px;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--gray-200);
    background: var(--primary);
    color: var(--white);
}

.drawer-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.2s;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.drawer-close:active {
    transform: scale(0.95);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 20px;
}

.drawer-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.drawer-step:last-of-type {
    border-bottom: none;
}

.drawer-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.drawer-step-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

.drawer-step-info p {
    margin: 0;
    line-height: 1.6;
    color: var(--gray-700);
}

.drawer-extra {
    margin-top: 32px;
    padding: 20px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

.drawer-extra h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

.drawer-extra ul {
    margin: 0;
    padding-left: 20px;
}

.drawer-extra li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray-700);
}

.drawer-extra li:last-child {
    margin-bottom: 0;
}

/* Configuration Section */
.config-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.config-section h2 {
    margin: 0 0 8px 0;
    color: var(--secondary);
}

.section-description {
    margin: 0 0 20px 0;
    color: var(--gray-500);
    font-size: 0.95rem;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.config-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #e67e22;
}

.config-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #856404;
}

.capacity-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.capacity-section h2 {
    margin: 0 0 16px 0;
    color: var(--secondary);
}

/* Colored input borders for capacity fields */
.input-red {
    border: 2px solid #e74c3c !important;
}

.input-red:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.input-orange {
    border: 2px solid #e67e22 !important;
}

.input-orange:focus {
    border-color: #d35400 !important;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1) !important;
}

.input-green {
    border: 2px solid #27ae60 !important;
}

.input-green:focus {
    border-color: #229954 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

/* Timeslots Overview */
.timeslots-overview {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow);
}

.timeslots-overview h2 {
    margin: 0 0 16px 0;
    color: var(--secondary);
}

.timeslots-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hour-block {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.hour-block-header {
    background: var(--gray-50);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 1px solid var(--gray-200);
}

.slots-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px;
}

.slot-item {
    background: var(--gray-50);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.timeslots-list .loading {
    text-align: center;
    color: var(--gray-500);
    padding: 40px 20px;
    font-style: italic;
}


/* Waitinglist styles */
.waitinglist-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.waitinglist-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.waitinglist-card-header {
    background: #fff3cd;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f39c12;
}

.waitinglist-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #856404;
}

.waitinglist-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.waitinglist-status.pending {
    background: #fff3cd;
    color: #856404;
}

.waitinglist-status.approved {
    background: #d4edda;
    color: #155724;
}

.waitinglist-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.waitinglist-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitinglist-customer,
.waitinglist-timeslot,
.waitinglist-items {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.waitinglist-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.waitinglist-created {
    font-size: 0.85rem;
    color: #666;
}

.waitinglist-notes {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-style: italic;
}

.waitinglist-actions {
    padding: 12px 16px;
    background: #f8f9fa;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.waitinglist-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .waitinglist-actions {
        flex-direction: column;
    }
    
    .waitinglist-actions button {
        width: 100%;
    }
}


/* Camera button for product image upload */
.camera-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    margin-left: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.camera-btn:hover {
    background: #f0f0f0;
    color: var(--primary);
    transform: scale(1.1);
}

.camera-btn:active {
    transform: scale(0.95);
}

.camera-btn svg {
    display: block;
}

/* Image modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.image-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.image-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.image-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.image-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.image-modal-body {
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 70vh;
    overflow: auto;
}

.image-modal-img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }

    .image-modal-header {
        padding: 12px 16px;
    }

    .image-modal-body {
        padding: 16px;
    }
}


/* Hide mobile-only breaks on desktop */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
}
