/**
 * WokNRolls Order Management System - Styles
 * Colors and branding from Wok'N'Rolls menu
 */

:root {
    /* Primary Colors */
    --gold: #d4af37;
    --dark-bg: #2c2c2c;
    --darker-bg: #1a1a1a;
    --light-gold: #f5e6c8;

    /* Status Colors */
    --new-order: #28a745;
    --preparing: #ffc107;
    --ready: #17a2b8;
    --served: #6c757d;

    /* Alert Colors */
    --allergy-warning: #dc3545;
    --spicy: #ff6b6b;
}

/* Reset and Base Styles */
.woknrolls-container * {
    box-sizing: border-box;
}

.woknrolls-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

/* Header Styles */
.woknrolls-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border-radius: 10px;
    margin-bottom: 30px;
}

.woknrolls-logo {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #d4af37 0%, #f5e6c8 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.woknrolls-header h2 {
    color: var(--light-gold);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 2px;
}

/* Kitchen Header Stats */
.woknrolls-kitchen-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.woknrolls-kitchen-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    color: var(--light-gold);
    font-size: 18px;
}

.woknrolls-kitchen-stats strong {
    color: var(--gold);
}

/* Dashboard Header Controls */
.woknrolls-dashboard-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.woknrolls-dashboard-controls {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

/* Order Info Section */
.woknrolls-order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woknrolls-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woknrolls-input-group label {
    font-weight: 600;
    font-size: 18px;
}

.woknrolls-input-group input {
    padding: 10px 15px;
    font-size: 18px;
    border: 2px solid var(--gold);
    border-radius: 5px;
    width: 150px;
}

.woknrolls-order-number {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-bg);
}

.woknrolls-order-number span {
    color: var(--gold);
}

/* Section Styles */
.woknrolls-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woknrolls-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-bg);
    border-bottom: 3px solid var(--gold);
    padding-bottom: 10px;
}

/* Category Grid */
.woknrolls-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.woknrolls-category-btn {
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    background: var(--dark-bg);
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woknrolls-category-btn:hover {
    background: var(--gold);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Order Items */
.woknrolls-order-items {
    min-height: 200px;
    margin-bottom: 20px;
}

.woknrolls-order-item {
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid var(--gold);
    margin-bottom: 10px;
    border-radius: 4px;
}

.woknrolls-order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.woknrolls-order-item-name {
    font-weight: 600;
    font-size: 16px;
}

.woknrolls-order-item-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
}

.woknrolls-order-item-details {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.woknrolls-order-item-note {
    margin-top: 5px;
    padding: 5px 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    font-size: 14px;
}

.woknrolls-order-item-allergy {
    margin-top: 5px;
    padding: 5px 10px;
    background: #f8d7da;
    border-left: 3px solid var(--allergy-warning);
    font-size: 14px;
    font-weight: 600;
    color: var(--allergy-warning);
}

.woknrolls-order-item-remove {
    padding: 5px 10px;
    font-size: 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.woknrolls-order-item-remove:hover {
    background: #c82333;
}

.empty-message {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

/* Order Total */
.woknrolls-order-total {
    padding: 15px;
    background: var(--dark-bg);
    color: white;
    font-size: 24px;
    text-align: right;
    border-radius: 5px;
    margin-bottom: 20px;
}

.woknrolls-order-total span {
    color: var(--gold);
}

/* Action Buttons */
.woknrolls-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.woknrolls-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woknrolls-btn-primary {
    background: var(--gold);
    color: var(--dark-bg);
}

.woknrolls-btn-primary:hover {
    background: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.woknrolls-btn-secondary {
    background: #6c757d;
    color: white;
}

.woknrolls-btn-secondary:hover {
    background: #5a6268;
}

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

.woknrolls-btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Mute Button */
.woknrolls-mute-btn {
    padding: 10px 20px;
    font-size: 16px;
}

.woknrolls-mute-btn.muted {
    background: #dc3545;
    color: white;
}

.woknrolls-mute-btn.muted:hover {
    background: #c82333;
}

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

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

.woknrolls-modal-content {
    background: white;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.woknrolls-modal-large {
    max-width: 1000px;
}

.woknrolls-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--dark-bg);
    color: var(--gold);
    border-radius: 10px 10px 0 0;
}

.woknrolls-modal-header h3 {
    margin: 0;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.woknrolls-modal-close {
    font-size: 32px;
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.woknrolls-modal-close:hover {
    color: var(--light-gold);
}

.woknrolls-modal-body {
    padding: 20px;
}

/* Menu Items List in Modal */
.woknrolls-menu-items-grid {
    display: grid;
    gap: 10px;
}

.woknrolls-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woknrolls-menu-item:hover {
    border-color: var(--gold);
    background: white;
}

.woknrolls-menu-item-name {
    font-weight: 600;
    font-size: 16px;
}

.woknrolls-menu-item-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
}

.spicy-indicator {
    color: var(--spicy);
    font-size: 18px;
    margin-left: 5px;
}

/* Item Customization Form */
.woknrolls-item-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.woknrolls-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woknrolls-form-group label {
    font-weight: 600;
    font-size: 16px;
}

.woknrolls-quantity-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.woknrolls-quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: var(--gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.woknrolls-quantity-btn:hover {
    background: var(--light-gold);
}

.woknrolls-quantity-display {
    font-size: 24px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.woknrolls-radio-group {
    display: flex;
    gap: 20px;
}

.woknrolls-radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.woknrolls-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
}

.woknrolls-form-group textarea {
    padding: 10px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.woknrolls-form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

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

/* Wok Builder Styles */
.woknrolls-wok-step {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.woknrolls-wok-step h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--dark-bg);
}

.woknrolls-wok-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.woknrolls-wok-option {
    padding: 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.woknrolls-wok-option:hover {
    border-color: var(--gold);
}

.woknrolls-wok-option.selected {
    border-color: var(--gold);
    background: var(--light-gold);
}

.woknrolls-wok-price-display {
    padding: 15px;
    background: var(--dark-bg);
    color: white;
    border-radius: 5px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
}

.woknrolls-wok-price-display span {
    color: var(--gold);
}

/* Kitchen Display Styles */
.woknrolls-kitchen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.woknrolls-kitchen-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.woknrolls-kitchen-card.status-new {
    border-color: var(--new-order);
    animation: pulse 2s infinite;
}

.woknrolls-kitchen-card.status-preparing {
    border-color: var(--preparing);
}

.woknrolls-kitchen-card.status-ready {
    border-color: var(--ready);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

.woknrolls-kitchen-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.woknrolls-kitchen-table {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-bg);
}

.woknrolls-kitchen-time {
    font-size: 14px;
    color: #666;
}

.woknrolls-kitchen-time.new {
    color: var(--new-order);
    font-weight: 700;
}

.woknrolls-kitchen-items {
    margin-bottom: 15px;
}

.woknrolls-kitchen-item {
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid var(--gold);
    margin-bottom: 10px;
    border-radius: 4px;
}

.woknrolls-kitchen-item-name {
    font-weight: 600;
    font-size: 16px;
}

.woknrolls-kitchen-item-details {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.woknrolls-kitchen-note {
    background: #fff3cd;
    border-left-color: #ffc107;
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 13px;
}

.woknrolls-kitchen-allergy {
    background: #f8d7da;
    border-left-color: var(--allergy-warning);
    margin-top: 5px;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--allergy-warning);
}

.woknrolls-kitchen-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woknrolls-kitchen-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.woknrolls-kitchen-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.woknrolls-kitchen-checkbox label {
    font-weight: 600;
    cursor: pointer;
}

.woknrolls-kitchen-delete {
    padding: 10px;
    background: var(--allergy-warning);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.woknrolls-kitchen-delete:hover {
    background: #c82333;
}

/* Dashboard Styles */
.woknrolls-filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.woknrolls-filter-section label {
    font-weight: 600;
    font-size: 18px;
}

.woknrolls-filter-buttons {
    display: flex;
    gap: 10px;
}

.woknrolls-filter-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woknrolls-filter-btn:hover {
    background: var(--light-gold);
}

.woknrolls-filter-btn.active {
    background: var(--gold);
    color: var(--dark-bg);
    font-weight: 600;
}

/* Kitchen and Status Filter Buttons */
.woknrolls-kitchen-filter-btn,
.woknrolls-status-filter-btn {
    padding: 10px 20px;
    font-size: 16px;
    background: white;
    border: 2px solid var(--gold);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woknrolls-kitchen-filter-btn:hover,
.woknrolls-status-filter-btn:hover {
    background: var(--light-gold);
}

.woknrolls-kitchen-filter-btn.active,
.woknrolls-status-filter-btn.active {
    background: var(--gold);
    color: var(--dark-bg);
    font-weight: 600;
}

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

.woknrolls-dashboard-order {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 8px solid transparent;
}

.woknrolls-dashboard-order.order-type-food {
    border-left-color: #ffc107;
}

.woknrolls-dashboard-order.order-type-drinks {
    border-left-color: #17a2b8;
}

.woknrolls-dashboard-order.order-type-mixed {
    border-left-color: #6c757d;
}

.woknrolls-dashboard-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.woknrolls-dashboard-order-info {
    font-size: 18px;
    font-weight: 600;
}

.woknrolls-dashboard-order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.woknrolls-dashboard-order-status.status-new {
    background: var(--new-order);
    color: white;
}

.woknrolls-dashboard-order-status.status-preparing {
    background: var(--preparing);
    color: var(--dark-bg);
}

.woknrolls-dashboard-order-status.status-ready {
    background: var(--ready);
    color: white;
}

.woknrolls-dashboard-order-status.status-served {
    background: var(--served);
    color: white;
}

.woknrolls-dashboard-items-section {
    margin-bottom: 15px;
}

.woknrolls-dashboard-items-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.woknrolls-dashboard-item {
    padding: 10px;
    background: #f9f9f9;
    border-left: 4px solid var(--gold);
    margin-bottom: 5px;
    border-radius: 4px;
}

.woknrolls-dashboard-order-total {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.woknrolls-dashboard-order-total span {
    color: var(--gold);
}

/* Success Message */
.woknrolls-success-message {
    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: 10001;
}

.woknrolls-success-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.woknrolls-success-content h3 {
    font-size: 32px;
    color: var(--new-order);
    margin: 0 0 20px 0;
}

.woknrolls-success-content p {
    font-size: 20px;
    margin: 0 0 30px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .woknrolls-logo {
        font-size: 32px;
    }

    .woknrolls-header h2 {
        font-size: 18px;
    }

    .woknrolls-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .woknrolls-kitchen-grid {
        grid-template-columns: 1fr;
    }

    .woknrolls-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .woknrolls-order-info {
        flex-direction: column;
        gap: 15px;
    }

    .woknrolls-actions {
        flex-direction: column;
    }

    .woknrolls-btn {
        width: 100%;
    }
}
