@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    /* Color Palette - Premium Warm Cozy Cafe Theme */
    --cafe-dark-rgb: 31, 17, 11;
    --cafe-dark: #1F110B;          /* Deep Espresso Black/Brown */
    --cafe-medium: #3E2723;        /* Warm Coffee Bean Mahogany */
    --cafe-light: #FFFBF7;         /* Soft Vanilla Cream / Warm White */
    --cafe-warm: #F5EBE6;          /* Creamy Latte Cream */
    --cafe-accent: #C08261;        /* Warm Rich Caramel Amber */
    --cafe-accent-hover: #A06241;  /* Darker Caramel */
    --cafe-accent-light: #FDF5F0;  /* Very Soft Orange-Cream tint */
    --cafe-gold: #D4AF37;          /* Classic Gold Accent */
    
    /* Text Color Tokens */
    --text-main: #2C1B14;
    --text-muted: #8D6E63;
    --text-light: #FFFBF7;
    
    /* Layout Tokens */
    --bg-main: #FAF6F0;            /* Soft Cozy Oatmeal Background */
    --bg-card: #FFFFFF;
    --border-color: #EFEBE9;
    --shadow-sm: 0 4px 12px rgba(31, 17, 11, 0.03);
    --shadow-md: 0 10px 30px rgba(31, 17, 11, 0.06);
    --shadow-lg: 0 20px 48px rgba(31, 17, 11, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html, body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--cafe-warm);
    border-radius: 10px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cafe-accent);
}

/* Cozy Ambient Blur Background */
.cozy-blur-bg {
    background: linear-gradient(135deg, rgba(31,17,11,0.92) 0%, rgba(62,39,35,0.96) 100%), 
                url('https://images.unsplash.com/photo-1554118811-1e0d58224f24?w=1600&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Glassmorphism Card Style */
.cafe-glass-card {
    background: rgba(255, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}
.cafe-glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(31, 17, 11, 0.15);
}

/* Inputs & Form Controls */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.cafe-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--cafe-light);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-body);
}

.cafe-input:focus {
    outline: none;
    border-color: var(--cafe-accent);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(192, 130, 97, 0.12);
}

.cafe-input::placeholder {
    color: #A1887F;
    font-weight: 400;
}

/* Premium Buttons */
.btn-cafe-primary {
    background: linear-gradient(135deg, var(--cafe-accent) 0%, var(--cafe-accent-hover) 100%);
    color: white;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(192, 130, 97, 0.25);
    text-decoration: none;
}

.btn-cafe-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 130, 97, 0.4);
    filter: brightness(1.05);
}

.btn-cafe-primary:active {
    transform: translateY(1px);
}

.btn-cafe-secondary {
    background: var(--cafe-warm);
    color: var(--cafe-medium);
    font-weight: 600;
    font-size: 15px;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-cafe-secondary:hover {
    background: var(--border-color);
    color: var(--cafe-dark);
}

/* Brewing Coffee Loader Animation */
.brewing-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.coffee-cup-loader {
    width: 60px;
    height: 50px;
    border: 4px solid var(--cafe-accent);
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: relative;
}

.coffee-cup-loader::after {
    content: '';
    width: 14px;
    height: 24px;
    border: 4px solid var(--cafe-accent);
    border-left: none;
    border-radius: 0 12px 12px 0;
    position: absolute;
    top: 6px;
    right: -18px;
}

.coffee-liquid {
    background: linear-gradient(0deg, var(--cafe-medium) 0%, var(--cafe-accent) 100%);
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 0 0 16px 16px;
    animation: fillCup 2.5s ease-in-out infinite;
}

.coffee-steam {
    position: absolute;
    top: -24px;
    width: 4px;
    height: 16px;
    background: var(--cafe-accent);
    border-radius: 2px;
    opacity: 0;
}

.steam-1 { left: 12px; animation: steamRise 1.8s infinite; }
.steam-2 { left: 24px; animation: steamRise 1.8s infinite 0.6s; }
.steam-3 { left: 36px; animation: steamRise 1.8s infinite 1.2s; }

@keyframes fillCup {
    0% { height: 0%; }
    70%, 100% { height: 85%; }
}

@keyframes steamRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    30% { opacity: 0.6; }
    80% { transform: translateY(-12px) scaleX(1.5); opacity: 0; }
    100% { transform: translateY(-16px) scaleX(2); opacity: 0; }
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #27ae60;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-kick {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    stroke: #27ae60;
    fill: none;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Utility Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Print Receipt Styling */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .no-print {
        display: none !important;
    }
}