/* QRCihan - The House Cafe - Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    --color-red-500: #EF4444;
    --color-red-600: #DC2626;
    --color-green-50: #F0FDF4;
    --color-green-100: #DCFCE7;
    --color-green-500: #22C55E;
    --color-green-600: #16A34A;
    --color-mint: #d4e8d4;
    --color-amber-500: #F59E0B;
    --color-blue-500: #3B82F6;
    --color-yellow-500: #EAB308;
    --color-cyan-500: #06B6D4;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 700;
}

h2 {
    font-size: 22px;
    font-weight: 700;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

h4 {
    font-size: 16px;
    font-weight: 600;
}

p {
    font-size: 14px;
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background: var(--color-white);
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner {
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-red-600);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button */
.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--color-red-600);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-red-500);
}

.btn-secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
}

.btn-secondary:hover {
    background: var(--color-gray-200);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-red {
    background: var(--color-red-100);
    color: var(--color-red-600);
}

.badge-green {
    background: var(--color-green-100);
    color: var(--color-green-600);
}

/* Card */
.card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-gray-100);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modal/Drawer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.2s;
}

.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: 24px 24px 0 0;
    z-index: 1000;
    max-height: 95vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: #000;
    border-top: 1px solid #1F2937;
    border-radius: 16px 16px 0 0;
    z-index: 50;
}

.bottom-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    align-items: center;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    color: #6B7280;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-nav-item.active {
    color: #fff;
}

.bottom-nav-item.active .nav-icon {
    stroke-width: 2;
}

.bottom-nav-item:hover {
    color: #fff;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.nav-label {
    font-size: 12px;
}

.lang-button {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    width: 100%;
}

.lang-display {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
}

.chevron-icon {
    width: 12px;
    height: 12px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 8px;
    min-width: 160px;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #E5E7EB;
    transition: background 0.2s;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #F9FAFB;
}

.lang-code {
    color: #111827;
    font-weight: 600;
    min-width: 30px;
}

.lang-name {
    color: #6B7280;
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-red {
    color: var(--color-red-600);
}

.bg-mint {
    background: var(--color-mint);
}

.rounded-full {
    border-radius: 9999px;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.p-4 {
    padding: 16px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* Icon Styles */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
