/* SWADISH - Black Royal Theme with Gold Accents */

:root {
    --swadish-black: #0a0a0a;
    --swadish-dark: #1a1a1a;
    --swadish-dark-grey: #2a2a2a;
    --swadish-grey: #3a3a3a;
    --swadish-light-grey: #6a6a6a;
    --swadish-gold: #d4af37;
    --swadish-gold-light: #f4d03f;
    --swadish-gold-dark: #b8941f;
    --swadish-white: #ffffff;
    --swadish-text-light: #e0e0e0;
    --swadish-text-grey: #a0a0a0;
    --swadish-success: #28a745;
    --swadish-danger: #dc3545;
    --swadish-warning: #ffc107;
    --swadish-info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

html, body {
    height: 100%;
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.swadish-body {
    background-color: var(--swadish-black);
    color: var(--swadish-white);
    min-height: 100vh;
    padding-bottom: 80px; /* Space for bottom navigation */
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.swadish-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--swadish-white);
    font-weight: 600;
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.text-gold {
    color: var(--swadish-gold) !important;
}

.text-light-grey {
    color: var(--swadish-text-grey) !important;
}

/* Buttons */
.btn-gold,
.btn-dark-grey,
button,
.btn {
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.btn-gold {
    background-color: var(--swadish-gold);
    color: var(--swadish-black);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--swadish-gold-light);
    color: var(--swadish-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold:active {
    background-color: var(--swadish-gold-dark);
    transform: translateY(0);
}

.btn-dark-grey {
    background-color: var(--swadish-dark-grey);
    color: var(--swadish-white);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

.btn-dark-grey:hover {
    background-color: var(--swadish-grey);
    color: var(--swadish-white);
}

/* Form Controls */
input,
textarea,
select,
.form-control,
.form-control-swadish {
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-control-swadish {
    background-color: var(--swadish-dark-grey);
    border: 1px solid var(--swadish-grey);
    border-radius: 8px;
    color: var(--swadish-white);
    padding: 12px 16px;
    font-size: 16px;
}

.form-control-swadish:focus {
    background-color: var(--swadish-dark-grey);
    border-color: var(--swadish-gold);
    color: var(--swadish-white);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control-swadish::placeholder {
    color: var(--swadish-text-grey);
}

/* Labels and Helper Text */
label,
.form-label,
.help-text,
small,
.form-text {
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Cards */
.card-swadish {
    background-color: var(--swadish-dark-grey);
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.card-swadish-gold {
    background-color: var(--swadish-dark-grey);
    border: 2px solid var(--swadish-gold);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

/* Status Badges */
.badge-pending {
    background-color: var(--swadish-gold);
    color: var(--swadish-black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-preparing {
    background-color: var(--swadish-info);
    color: var(--swadish-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-completed {
    background-color: var(--swadish-success);
    color: var(--swadish-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-skipped {
    background-color: var(--swadish-warning);
    color: var(--swadish-black);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-cancelled {
    background-color: var(--swadish-danger);
    color: var(--swadish-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Toggle Switches */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--swadish-grey);
    transition: 0.4s;
    border-radius: 28px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--swadish-white);
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--swadish-gold);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Navigation */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--swadish-dark-grey);
    border-top: 1px solid var(--swadish-grey);
    padding: 12px 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--swadish-text-grey);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.nav-bottom-item.active {
    color: var(--swadish-gold);
}

.nav-bottom-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* Header */
.header-swadish {
    background-color: var(--swadish-dark);
    border-bottom: 1px solid var(--swadish-grey);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Search Bar */
.search-bar-swadish {
    background-color: var(--swadish-dark-grey);
    border: 1px solid var(--swadish-grey);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--swadish-white);
    width: 100%;
    margin-bottom: 16px;
}

.search-bar-swadish:focus {
    border-color: var(--swadish-gold);
    outline: none;
}

/* Category Filters */
.category-filter {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 0;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.category-btn {
    background-color: var(--swadish-dark-grey);
    color: var(--swadish-white);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category-btn.active {
    background-color: var(--swadish-gold);
    color: var(--swadish-black);
}

/* Progress Bar */
.progress-swadish {
    background-color: var(--swadish-grey);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-swadish {
    background-color: var(--swadish-gold);
    height: 100%;
    transition: width 0.3s ease;
}

/* Mobile First - Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .btn-gold, .btn-dark-grey {
        width: 100%;
        margin-bottom: 12px;
    }
}

/* Utility Classes */
.mt-gold {
    margin-top: 16px;
}

.mb-gold {
    margin-bottom: 16px;
}

.p-gold {
    padding: 16px;
}

.rounded-gold {
    border-radius: 8px;
}

.shadow-gold {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* Loading Spinner */
.spinner-gold {
    border: 3px solid var(--swadish-grey);
    border-top: 3px solid var(--swadish-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* VEG Indicator */
.veg-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: var(--swadish-success);
    border: 1px solid var(--swadish-success);
    border-radius: 2px;
    position: relative;
}

.veg-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--swadish-white);
    border-radius: 50%;
}

/* Footer Styles */
.swadish-footer {
    background-color: var(--swadish-dark-grey);
    border-top: 1px solid var(--swadish-grey);
    margin-top: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    width: 100%;
}

.swadish-footer .footer-link {
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.swadish-footer .footer-link:hover {
    color: var(--swadish-gold-light) !important;
}

/* Responsive Footer - Mobile First */
@media (max-width: 767.98px) {
    .swadish-footer {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .swadish-footer .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .swadish-footer p,
    .swadish-footer span {
        font-size: 10px !important;
    }
}

/* Prevent double-tap zoom on clickable UI - Works on both iOS & Android */
.product-card,
.category-btn,
.btn,
.btn-quantity,
.addon-option,
.card-swadish,
.nav-bottom-item,
button,
a,
[role="button"] {
    touch-action: manipulation;
}

/* Allow text selection where needed */
input,
textarea,
[contenteditable] {
    touch-action: auto;
    user-select: text;
    -webkit-user-select: text;
}

