﻿:root {
    --primary: #782F40;
    --primary-hover: #B34B63;
    --primary-light: #f7e8eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    /* Dark Mode Styles */
    body.dark-mode {
        background-color: #1a1a1a;
        color: #e5e5e5;
    }

        body.dark-mode .bg-gray-50 {
            background-color: #1a1a1a;
        }

        body.dark-mode .bg-white {
            background-color: #2a2a2a;
        }

        body.dark-mode .text-gray-800 {
            color: #e5e5e5;
        }
        body.dark-mode .text-gray-700 {
            color: #b0b0b0;
        }
        body.dark-mode .text-gray-600 {
            color: #a0a0a0;
        }

        body.dark-mode .text-gray-500 {
            color: #808080;
        }

        body.dark-mode .text-gray-400 {
            color: #666666;
        }

        body.dark-mode .border-gray-300 {
            border-color: #404040;
        }

        body.dark-mode .border-gray-200 {
            border-color: #353535;
        }

        body.dark-mode .product-card {
            border-color: #404040;
            background-color: #2a2a2a;
        }

            body.dark-mode .product-card:hover {
                border-color: var(--primary-hover);
                box-shadow: 0 12px 24px rgba(179, 75, 99, 0.2);
            }

        body.dark-mode .alert-info {
            background: linear-gradient(135deg, #5a2330 0%, #782F40 100%);
        }

        body.dark-mode input, body.dark-mode select {
            background-color: #353535;
            color: #e5e5e5;
            border-color: #404040;
        }

            body.dark-mode input::placeholder {
                color: #666666;
            }

        body.dark-mode .calendar-day:hover:not(.disabled) {
            background-color: rgba(120, 47, 64, 0.3);
        }

        body.dark-mode .quantity-btn:hover {
            background-color: rgba(120, 47, 64, 0.3);
        }
        
.bg-primary {
    background-color: var(--primary);
}

.bg-primary-hover {
    background-color: var(--primary-hover);
}

.bg-primary-light {
    background-color: var(--primary-light);
}

.text-primary {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(120, 47, 64, 0.3);
    }

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-hover);
    }

.product-image {
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.calendar-day {
    transition: all 0.2s ease;
    min-height: 32px;
}

    .calendar-day:hover:not(.disabled) {
        background-color: var(--primary-light);
        cursor: pointer;
    }

    .calendar-day.selected {
        background-color: var(--primary);
        color: white;
    }

.quantity-btn {
    transition: all 0.2s ease;
}

    .quantity-btn:hover {
        background-color: var(--primary-light);
    }

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.alert-info {
    background: linear-gradient(135deg, #782F40 0%, #9D3E54 100%);
    border-left: 4px solid #5a2330;
}

.nav-link {
    position: relative;
    transition: color 0.2s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-hover);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Dark Mode Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .theme-toggle:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
}

body.dark-mode .theme-toggle-slider {
    transform: translateX(30px);
}

.grid {
    align-items: start; 
}

.bg-footer {
    background-color: rgba(34, 34, 34, 0.95);
}
h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus,
h3[tabindex="-1"]:focus {
    outline: none;
}

/* Cart Modal Styles */
.modal-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    transition: all 0.2s ease;
}

    .cart-item:hover {
        background-color: #fafafa;
    }

body.dark-mode .cart-item:hover {
    background-color: #404040;
}

.close-btn {
    transition: all 0.2s ease;
}

    .close-btn:hover {
        transform: rotate(90deg);
        color: var(--primary);
    }
/* Modal Animation Classes */
.fadeOut {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fadeIn {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

    .fadeIn .modal-content {
        animation: slideDown 0.3s ease;
    }

/* Cart */
.btn-danger {
    background-color: #dc2626;
    color: white;
    transition: all 0.3s ease;
}

    .btn-danger:hover {
        background-color: #b91c1c;
        transform: translateY(-1px);
    }

.cart-item-card {
    transition: all 0.3s ease;
}

    .cart-item-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

.summary-card {
    position: sticky;
    top: 6rem;
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

.cart-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Checkout */
.form-section {
    transition: all 0.3s ease;
}



.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #e5e7eb;
    color: #6b7280;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary);
    color: white;
}

.step.completed .step-number {
    background-color: #10b981;
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e5e7eb;
    margin: 0 1rem;
}

.step.active .step-line {
    background-color: var(--primary);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(120, 47, 64, 0.1);
}

.checkbox-custom {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

    .checkbox-custom:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

        .checkbox-custom:checked::after {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 12px;
        }

/* Login */
.login-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

input.with-icon {
    padding-left: 3rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e5e7eb;
    }

body.dark-mode .divider::before,
body.dark-mode .divider::after {
    border-color: #404040;
}

.divider span {
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Validation */
.validation-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.invalid {
    border-color: #dc2626 !important;
}

.valid.modified:not([type=checkbox]) {
    border-color: #16a34a;
}

/* Registration */
body.dark-mode .password-requirements {
    background-color: #1f1f1f;
    border-color: #404040;
}
.password-requirements {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

    .requirement-item:last-child {
        margin-bottom: 0;
    }

    .requirement-item i {
        margin-right: 0.5rem;
        width: 16px;
    }

    .requirement-item.valid {
        color: #10b981;
    }

        .requirement-item.valid i {
            color: #10b981;
        }

/* MyAccount */
body.dark-mode .order-card {
    background-color: #2a2a2a;
    border-color: #404040;
}

    body.dark-mode .order-card:hover {
        border-color: var(--primary-hover);
    }

body.dark-mode .sidebar-nav {
    background-color: #2a2a2a;
    border-color: #404040;
}

body.dark-mode .nav-item:hover {
    background-color: #353535;
}

body.dark-mode .nav-item.active {
    background-color: var(--primary);
}
.sidebar-nav {
    position: sticky;
    top: 6rem;
}

.nav-item {
    transition: all 0.2s ease;
}

    .nav-item:hover {
        background-color: #f9fafb;
        transform: translateX(4px);
    }

    .nav-item.active {
        background-color: var(--primary);
        color: white;
    }

        .nav-item.active i {
            color: white;
        }

.order-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

    .order-card:hover {
        border-color: var(--primary-hover);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.order-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.order-card.expanded .order-details {
    max-height: 500px;
}

.order-card.expanded .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.3s ease;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
}

body.dark-mode .status-success {
    background-color: #065f46;
    color: #d1fae5;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

body.dark-mode .status-pending {
    background-color: #92400e;
    color: #fef3c7;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

body.dark-mode .status-cancelled {
    background-color: #991b1b;
    color: #fee2e2;
}

/* Successfull payment */

body.dark-mode .bg-green-50 {
    background-color: #064e3b;
}
.success-card {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Payment Cancelled*/
body.dark-mode .bg-red-50 {
    background-color: #7f1d1d;
}

.cancelled-icon {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Payment failed*/

body.dark-mode .bg-orange-50 {
    background-color: #7c2d12;
}

.failed-icon {
    animation: scaleIn 0.5s ease;
}

/*Payment timeuot*/
body.dark-mode .bg-yellow-50 {
    background-color: #713f12;
}

.timeout-icon {
    animation: scaleIn 0.5s ease;
}


.clock-icon {
    animation: pulse 2s ease-in-out infinite;
}

/*Cashier tickets*/
.btn-primary-kiosk {
    /*min-height: 60px;*/
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-dark, #2563eb) 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .btn-primary-kiosk:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    }

    .btn-primary-kiosk:not(:disabled):active {
        transform: translateY(0);
    }

    .btn-primary-kiosk:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.tab-button {
    /*min-height: 60px;*/
    padding: 0.5rem 2rem;
    background: white;
    color: #6b7280;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .tab-button:hover {
        background: #f9fafb;
        border-color: var(--primary-color, #3b82f6);
    }

    .tab-button.active {
        background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-dark, #2563eb) 100%);
        color: white;
        border-color: var(--primary-color, #3b82f6);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

.quantity-btn-kiosk {
    min-width: 60px;
    /*min-height: 60px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .quantity-btn-kiosk:active {
        transform: scale(0.95);
    }