/* assets/css/style.css - COMPLETE COFFEE SHOP THEME */
:root {
    --primary-brown: #4A2C2A;
    --secondary-brown: #8B5E3C;
    --light-brown: #D2A679;
    --cream: #F5DEB3;
    --off-white: #FFF8F0;
    --dark-brown: #3C2415;
    --accent-gold: #C8A27A;
    --text-dark: #2C1810;
    --success-green: #5D8A5D;
    --error-red: #8B3A3A;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ============================================
   COFFEE SHOP BACKGROUND
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(210, 166, 121, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(210, 166, 121, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 10%, rgba(245, 222, 179, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(139, 94, 60, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(139, 94, 60, 0.1) 0%, transparent 40%),
        linear-gradient(180deg,
            #2C1810 0%,
            #4A2C2A 15%,
            #5D3A30 30%,
            #6B4A3A 50%,
            #7A5545 65%,
            #8B5E3C 80%,
            #6B4A3A 100%);
    background-attachment: fixed;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    z-index: -1;
    background:
        repeating-linear-gradient(90deg,
            rgba(60, 36, 21, 0.3) 0px,
            rgba(74, 44, 42, 0.2) 2px,
            rgba(60, 36, 21, 0.4) 4px,
            rgba(74, 44, 42, 0.2) 6px,
            rgba(60, 36, 21, 0.3) 8px,
            rgba(74, 44, 42, 0.2) 10px,
            rgba(60, 36, 21, 0.4) 12px),
        repeating-linear-gradient(0deg,
            rgba(139, 94, 60, 0.1) 0px,
            rgba(139, 94, 60, 0.1) 1px,
            transparent 1px,
            transparent 100px),
        linear-gradient(180deg,
            #5D3A30 0%,
            #6B4A3A 20%,
            #7A5545 40%,
            #6B4A3A 60%,
            #5D3A30 80%,
            #4A2C2A 100%);
    background-attachment: fixed;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* ============================================
   SMOKE EFFECT
   ============================================ */
.smoke-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.smoke {
    position: absolute;
    bottom: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: smokeRise var(--duration, 15s) ease-in infinite;
    animation-delay: var(--delay, 0s);
}

.smoke:nth-child(1) {
    left: 10%;
    --duration: 18s;
    --delay: 0s;
    width: 250px;
    height: 250px;
}

.smoke:nth-child(2) {
    left: 25%;
    --duration: 22s;
    --delay: 3s;
    width: 180px;
    height: 180px;
}

.smoke:nth-child(3) {
    left: 40%;
    --duration: 20s;
    --delay: 6s;
    width: 300px;
    height: 300px;
}

.smoke:nth-child(4) {
    left: 55%;
    --duration: 25s;
    --delay: 2s;
    width: 220px;
    height: 220px;
}

.smoke:nth-child(5) {
    left: 70%;
    --duration: 19s;
    --delay: 8s;
    width: 280px;
    height: 280px;
}

.smoke:nth-child(6) {
    left: 85%;
    --duration: 23s;
    --delay: 4s;
    width: 200px;
    height: 200px;
}

.smoke:nth-child(7) {
    left: 50%;
    --duration: 30s;
    --delay: 10s;
    width: 350px;
    height: 350px;
}

.smoke:nth-child(8) {
    left: 15%;
    --duration: 26s;
    --delay: 14s;
    width: 150px;
    height: 150px;
}

.smoke:nth-child(9) {
    left: 75%;
    --duration: 28s;
    --delay: 18s;
    width: 160px;
    height: 160px;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(-50vh) scale(1.5) rotate(5deg);
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) scale(2.5) rotate(10deg);
        opacity: 0;
    }
}

/* ============================================
   FLOATING COFFEE BEANS
   ============================================ */
.coffee-bean {
    position: fixed;
    font-size: 30px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    animation: floatBean 20s ease-in-out infinite;
}

.coffee-bean:nth-child(1) {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    font-size: 40px;
}

.coffee-bean:nth-child(2) {
    top: 60%;
    right: 5%;
    animation-delay: -3s;
    font-size: 35px;
}

.coffee-bean:nth-child(3) {
    bottom: 40%;
    left: 3%;
    animation-delay: -7s;
    font-size: 45px;
}

.coffee-bean:nth-child(4) {
    top: 30%;
    right: 10%;
    animation-delay: -11s;
    font-size: 25px;
}

.coffee-bean:nth-child(5) {
    bottom: 20%;
    right: 20%;
    animation-delay: -15s;
    font-size: 50px;
}

@keyframes floatBean {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

/* ============================================
   WRAPPER
   ============================================ */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 2rem;
    width: 100%;
    background: rgba(255, 248, 240, 0.88);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(210, 166, 121, 0.15);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-brown), var(--dark-brown));
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid var(--accent-gold);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand a {
    color: var(--cream);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.nav-brand a:hover {
    color: var(--accent-gold);
    transform: scale(1.02);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 60%;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(139, 94, 60, 0.3);
    color: white;
}

.user-greeting {
    color: var(--cream);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

/* ============================================
   NOTIFICATION BELL
   ============================================ */
.notification-bell {
    position: relative;
    cursor: pointer;
    color: var(--cream);
    font-size: 1.2rem;
    transition: var(--transition);
}

.notification-bell:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--error-red), #a04444);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 58, 58, 0.4);
}

.notification-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    width: 320px;
    background: linear-gradient(135deg, #FFF8F0, #F5DEB3);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1001;
    border: 1px solid var(--light-brown);
}

.notification-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(210, 166, 121, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background-color: rgba(245, 222, 179, 0.5);
}

.notification-item.unread {
    background: linear-gradient(90deg, rgba(245, 222, 179, 0.3), transparent);
    border-left: 3px solid var(--secondary-brown);
}

.notification-item strong {
    color: var(--primary-brown);
    display: block;
}

.notification-item small {
    color: var(--secondary-brown);
    font-size: 0.75rem;
}

.notification-item p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(74, 44, 42, 0.92), rgba(44, 24, 16, 0.95));
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(210, 166, 121, 0.15);
}

.hero-section::before {
    content: '☕';
    position: absolute;
    font-size: 400px;
    opacity: 0.05;
    top: -50%;
    right: -10%;
    transform: rotate(20deg);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Steam */
.hero-steam {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-steam span {
    position: absolute;
    bottom: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: heroSteamRise var(--d, 8s) ease-in infinite;
    animation-delay: var(--delay, 0s);
}

.hero-steam span:nth-child(1) {
    left: 20%;
    --d: 10s;
    --delay: 0s;
    width: 80px;
    height: 80px;
}

.hero-steam span:nth-child(2) {
    left: 40%;
    --d: 12s;
    --delay: 2s;
    width: 100px;
    height: 100px;
}

.hero-steam span:nth-child(3) {
    left: 60%;
    --d: 9s;
    --delay: 4s;
    width: 70px;
    height: 70px;
}

.hero-steam span:nth-child(4) {
    left: 80%;
    --d: 11s;
    --delay: 6s;
    width: 90px;
    height: 90px;
}

@keyframes heroSteamRise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    50% {
        transform: translateY(-50vh) scale(1.5);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) scale(2.5);
        opacity: 0;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 94, 60, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--cream), var(--light-brown));
    color: var(--dark-brown);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(210, 166, 121, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-brown);
    color: var(--secondary-brown);
}

.btn-outline:hover {
    background-color: var(--secondary-brown);
    color: white;
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-gold), #b8956a);
    color: var(--dark-brown);
    box-shadow: 0 4px 15px rgba(200, 162, 122, 0.3);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(200, 162, 122, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none !important;
}

/* ============================================
   CARDS & GRIDS
   ============================================ */
.features-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card,
.product-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.feature-card:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--light-brown);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--cream), var(--light-brown));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '☕';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.coffee-cup-icon {
    font-size: 4rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-brown);
    margin: 0.5rem 0;
}

.product-category {
    color: var(--secondary-brown);
    font-size: 0.85rem;
}

.product-stock {
    margin: 0.35rem 0;
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-stock-low {
    color: #c62828;
}

.product-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

/* ============================================
   MENU PAGE - STYLED SEARCH AND SORT
   ============================================ */
.menu-container {
    max-width: 1400px;
    margin: 0 auto;
}

.menu-header {
    text-align: center;
    margin-bottom: 2rem;
}

.menu-header h1 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
}

.menu-header p {
    font-size: 1.1rem;
    color: var(--secondary-brown);
}

.menu-filters {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Filters */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-chip {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--cream);
    color: var(--dark-brown);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.filter-chip:hover {
    background: var(--light-brown);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--secondary-brown);
    color: white;
    border-color: var(--primary-brown);
    box-shadow: 0 2px 10px rgba(139, 94, 60, 0.3);
}

/* Filter Row - Sort and Search side by side */
.filter-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(210, 166, 121, 0.3);
}

/* Sort Group */
.sort-group {
    flex: 0 0 auto;
    min-width: 200px;
}

.sort-group select {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid var(--light-brown);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background: white;
    color: var(--dark-brown);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B5E3C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    font-weight: 500;
}

.sort-group select:hover {
    border-color: var(--secondary-brown);
}

.sort-group select:focus {
    outline: none;
    border-color: var(--secondary-brown);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
}

/* Search Group */
.staff-orders .status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(210, 166, 121, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.staff-orders .status-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    color: var(--dark-brown);
    background: var(--off-white);
    border: 1px solid rgba(139, 94, 60, 0.2);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: var(--transition);
}

.staff-orders .status-tab:hover {
    color: var(--primary-brown);
    border-color: var(--secondary-brown);
    background: var(--cream);
    transform: translateY(-1px);
}

.staff-orders .status-tab.active {
    color: white;
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    border-color: var(--primary-brown);
    box-shadow: 0 3px 10px rgba(74, 44, 42, 0.2);
}

.staff-orders .status-tab .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    color: var(--dark-brown);
    background: var(--cream);
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
}

.staff-orders .status-tab.active .count {
    color: var(--primary-brown);
    background: white;
}

.search-group {
    flex: 1;
    min-width: 250px;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.search-form select {
    flex: 0 0 220px;
    width: 220px;
    min-height: 48px;
    padding: 0.65rem 2.5rem 0.65rem 0.9rem;
    border: 2px solid var(--light-brown);
    border-radius: var(--border-radius);
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B5E3C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 12px;
    color: var(--dark-brown);
    font: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.search-form select:hover {
    border-color: var(--secondary-brown);
}

.search-form select:focus {
    outline: none;
    border-color: var(--secondary-brown);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
}

.search-input {
    flex: 1 1 360px;
    width: auto;
    min-width: 260px;
    min-height: 48px;
    padding: 0.65rem 1rem;
    border: 2px solid var(--light-brown);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--dark-brown);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary-brown);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
}

.search-input::placeholder {
    color: #aaa;
}

.search-form .btn,
.search-form button:not(.btn) {
    min-height: 48px;
    padding: 0.65rem 1.25rem;
    white-space: nowrap;
}

.search-form button:not(.btn) {
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.search-form button:not(.btn):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 44, 42, 0.2);
}

.admin-orders .filters {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(210, 166, 121, 0.35);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.admin-orders .filters .search-form {
    flex-wrap: nowrap;
    gap: 1rem;
}

.admin-orders .filters .search-form select {
    flex-basis: 240px;
    width: 240px;
    min-height: 54px;
    padding-left: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.admin-orders .filters .search-form .search-input {
    flex: 1 1 420px;
    min-width: 280px;
    min-height: 54px;
    padding: 0.8rem 1.1rem;
    font-size: 1rem;
}

.admin-orders .filters .search-form .btn {
    min-width: 110px;
    min-height: 54px;
    padding: 0.8rem 1.25rem;
    font-size: 1rem;
}

.admin-orders .filters .search-form .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search-group button {
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.search-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 94, 60, 0.3);
}

/* ============================================
   PROMO SECTION
   ============================================ */
.promo-section {
    background: linear-gradient(135deg, rgba(74, 44, 42, 0.95), rgba(44, 24, 16, 0.98));
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin: 2rem 0;
    text-align: center;
    border: 1px solid rgba(210, 166, 121, 0.15);
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '⭐';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: -30%;
    right: -10%;
    transform: rotate(20deg);
}

.promo-content h2 {
    color: var(--cream);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.promo-content p {
    color: var(--light-brown);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.auth-card-wide {
    max-width: 700px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.coffee-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-brown);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ============================================
   CART
   ============================================ */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 1rem;
    background: linear-gradient(135deg, var(--cream), var(--light-brown));
    font-weight: bold;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
    padding: 1rem;
    border-bottom: 1px solid rgba(210, 166, 121, 0.3);
    align-items: center;
    background: white;
}

.cart-item:nth-child(even) {
    background: #FFF8F0;
}

.cart-item-name {
    display: flex;
    flex-direction: column;
}

.item-instructions {
    font-size: 0.75rem;
    color: var(--secondary-brown);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--secondary-brown);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--secondary-brown);
    color: white;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.remove-btn:hover {
    transform: scale(1.2);
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(210, 166, 121, 0.2);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: none;
    color: var(--primary-brown);
}

.loyalty-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--cream);
    border-radius: var(--border-radius);
    text-align: center;
}

/* ============================================
   STAFF DASHBOARD
   ============================================ */
.orders-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.order-column {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.column-header {
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.order-list {
    padding: 1rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

.order-ticket {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(210, 166, 121, 0.15);
    transition: var(--transition);
}

.order-ticket:hover {
    border-color: var(--secondary-brown);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.order-ticket-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.order-number {
    color: var(--primary-brown);
}

.order-time {
    color: var(--secondary-brown);
    font-weight: normal;
}

.order-customer {
    margin-bottom: 0.5rem;
}

.order-total {
    font-weight: bold;
    color: var(--primary-brown);
}

.order-notes {
    font-size: 0.8rem;
    color: var(--secondary-brown);
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--cream);
    border-radius: 4px;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-processing {
    background: #ffe0b2;
    color: #e65100;
}

.status-preparing {
    background: #c8e6c9;
    color: #2e7d32;
}

.status-ready {
    background: #bbdefb;
    color: #1565c0;
}

.status-completed {
    background: #d1c4e9;
    color: #4527a0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--secondary-brown);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--dark-brown);
    transition: var(--transition);
}

.page-link.active,
.page-link:hover {
    background: var(--secondary-brown);
    color: white;
}

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: #ffebee;
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.alert-success {
    background: #e8f5e9;
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #1565c0;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-brown));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.toast.success {
    background: linear-gradient(135deg, var(--success-green), #4a7a4a);
}

.toast.error {
    background: linear-gradient(135deg, var(--error-red), #a04444);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.bounce {
    animation: bounce 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.shake {
    animation: shake 0.5s ease;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .orders-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 1rem;
    }

    .nav-menu.show {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-header,
    .cart-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cart-header {
        display: none;
    }

    .cart-item {
        border: 1px solid rgba(210, 166, 121, 0.3);
        margin-bottom: 1rem;
        border-radius: var(--border-radius);
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .orders-board {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
        margin: 1rem;
    }

    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-group {
        min-width: unset;
    }

    .search-group {
        min-width: unset;
    }

    .search-form .search-input {
        flex-basis: 100%;
        min-width: 0;
    }

    .search-form select {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .admin-orders .filters .search-form {
        flex-wrap: wrap;
    }
}

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */

/* Admin Dashboard Layout */
.admin-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-brown);
}

.dashboard-header h1 {
    color: var(--primary-brown);
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
}

.dashboard-header p {
    color: var(--secondary-brown);
    font-size: 1.1rem;
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #f5f1e8, white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #f0e6d2;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-brown), var(--accent-gold));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--secondary-brown);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--secondary-brown);
    font-weight: 500;
}

.stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.stat-trend.up {
    color: var(--success-green);
    background: rgba(93, 138, 93, 0.1);
}

.stat-trend.down {
    color: var(--error-red);
    background: rgba(139, 58, 58, 0.1);
}

.stat-trend.neutral {
    color: var(--secondary-brown);
    background: rgba(139, 94, 60, 0.1);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(210, 166, 121, 0.2);
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-card.wide {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    color: var(--primary-brown);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-brown);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Popular Products List */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    padding: 0.5rem 0;
}

.popular-item .product-name {
    font-weight: 600;
    color: var(--dark-brown);
    display: block;
}

.popular-item .product-sales {
    color: var(--secondary-brown);
    font-size: 0.85rem;
}

.product-bar {
    width: 100%;
    height: 6px;
    background: #f0e6d2;
    border-radius: 3px;
    margin-top: 0.25rem;
    overflow: hidden;
}

.product-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-brown), var(--accent-gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Status Chart */
.status-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-label {
    min-width: 90px;
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 0.9rem;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #f0e6d2;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.status-count {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    color: var(--primary-brown);
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
    margin: 0 -0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #f5f1e8, #e8ddd0);
}

.data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--dark-brown);
    border-bottom: 2px solid var(--light-brown);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8e0d0;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #fafaf8;
}

.data-table .order-amount {
    font-weight: 600;
    color: var(--primary-brown);
}

.empty-message {
    color: #999;
    text-align: center;
    padding: 1.5rem 0;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.quick-actions h3 {
    color: var(--primary-brown);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-brown);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.action-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.action-icon {
    font-size: 1.2rem;
}

/* ============================================
   RESPONSIVE ADMIN DASHBOARD
   ============================================ */

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card.wide {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .status-label {
        min-width: 70px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .dashboard-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   STAFF DASHBOARD STYLES
   ============================================ */

.staff-dashboard {
    max-width: 1600px;
    margin: 0 auto;
}

/* Dashboard Header */
.staff-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-brown);
    flex-wrap: wrap;
    gap: 1rem;
}

.staff-dashboard .dashboard-header .header-left h1 {
    color: var(--primary-brown);
    font-size: 1.8rem;
    margin: 0 0 0.25rem 0;
}

.staff-dashboard .dashboard-header .header-left p {
    color: var(--secondary-brown);
    font-size: 1rem;
    margin: 0;
}

.date-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-radius: var(--border-radius);
    border: 1px solid rgba(210, 166, 121, 0.3);
    font-weight: 500;
}

.date-icon {
    font-size: 1.2rem;
}

.date-text {
    color: var(--dark-brown);
}

/* Staff Stats */
.staff-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.staff-stats .stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid rgba(210, 166, 121, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.staff-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--light-brown);
}

.staff-stats .stat-icon {
    font-size: 2rem;
}

.staff-stats .stat-info {
    flex: 1;
}

.staff-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-brown);
    line-height: 1.2;
}

.staff-stats .stat-label {
    font-size: 0.8rem;
    color: var(--secondary-brown);
    font-weight: 500;
}

/* Orders Board Container */
.orders-board-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(210, 166, 121, 0.2);
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-brown);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.board-header h2 {
    color: var(--primary-brown);
    font-size: 1.2rem;
    margin: 0;
}

.board-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--success-green);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success-green);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Orders Board */
.orders-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.order-column {
    background: #f8f6f2;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(210, 166, 121, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 700px;
}

.column-header {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-shrink: 0;
}

.column-header .header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-header .status-icon {
    font-size: 1.2rem;
}

.column-header h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
}

.column-header .order-count {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-list {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.order-list::-webkit-scrollbar {
    width: 5px;
}

.order-list::-webkit-scrollbar-track {
    background: #f0e6d2;
    border-radius: 10px;
}

.order-list::-webkit-scrollbar-thumb {
    background: var(--secondary-brown);
    border-radius: 10px;
}

/* Empty Orders */
.empty-orders {
    text-align: center;
    padding: 2rem 0.5rem;
    color: #aaa;
}

.empty-orders .empty-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.empty-orders p {
    font-size: 0.85rem;
    margin: 0;
}

/* Order Ticket */
.order-ticket {
    background: white;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(210, 166, 121, 0.12);
    transition: var(--transition);
    animation: slideIn 0.3s ease;
}

.order-ticket:hover {
    border-color: var(--secondary-brown);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-ticket:last-child {
    margin-bottom: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.order-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.order-ticket-header .order-number {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 0.9rem;
}

.order-ticket-header .order-time {
    font-size: 0.75rem;
    color: var(--secondary-brown);
}

.order-customer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.order-customer .customer-name {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 0.9rem;
}

.order-customer .customer-phone {
    font-size: 0.75rem;
    color: var(--secondary-brown);
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.order-details .order-total {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 1rem;
}

.order-details .order-items {
    font-size: 0.75rem;
    color: var(--secondary-brown);
}

.order-notes {
    font-size: 0.75rem;
    color: var(--secondary-brown);
    margin: 0.25rem 0;
    padding: 0.25rem 0.5rem;
    background: var(--cream);
    border-radius: 4px;
    word-break: break-word;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.order-actions .btn {
    flex: 1;
    min-width: 60px;
    text-align: center;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
}

.btn-complete {
    background: linear-gradient(135deg, #4527a0, #311b92);
    color: white;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(69, 39, 160, 0.3);
}

/* Status Colors for Column Headers */
.order-column[data-status="processing"] .column-header {
    background: linear-gradient(135deg, #e65100, #bf360c) !important;
}

.order-column[data-status="preparing"] .column-header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
}

.order-column[data-status="ready"] .column-header {
    background: linear-gradient(135deg, #1565c0, #0d47a1) !important;
}

.order-column[data-status="completed"] .column-header {
    background: linear-gradient(135deg, #4527a0, #311b92) !important;
}

/* Responsive Staff Dashboard */
@media (max-width: 1200px) {
    .orders-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .staff-dashboard .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .staff-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .orders-board {
        grid-template-columns: 1fr;
    }

    .order-column {
        max-height: 400px;
    }

    .board-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .board-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .staff-stats {
        grid-template-columns: 1fr;
    }

    .order-actions {
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }
}

/* ============================================
   ADMIN USERS PAGE STYLES
   ============================================ */

.admin-users .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-users .page-header .header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-users .page-header .header-left h1 {
    color: var(--primary-brown);
    font-size: 1.8rem;
    margin: 0;
}

.user-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.user-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(210, 166, 121, 0.35);
    border-radius: var(--border-radius);
}

.user-view-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(139, 94, 60, 0.2);
    border-radius: 999px;
    color: var(--dark-brown);
    background: var(--off-white);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.user-view-tabs a:hover {
    border-color: var(--secondary-brown);
    background: var(--cream);
}

.user-view-tabs a.active {
    color: white;
    background: linear-gradient(135deg, var(--secondary-brown), var(--primary-brown));
    border-color: var(--primary-brown);
}

.user-view-tabs a span {
    display: inline-flex;
    min-width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    border-radius: 999px;
    color: var(--dark-brown);
    background: var(--cream);
    font-size: 0.75rem;
}

.user-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.user-search-form input {
    flex: 1 1 300px;
    min-width: 220px;
    min-height: 46px;
    padding: 0.65rem 1rem;
    border: 2px solid var(--light-brown);
    border-radius: var(--border-radius);
    font: inherit;
}

.user-search-form input:focus {
    outline: none;
    border-color: var(--secondary-brown);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.15);
}

.user-account-action {
    display: inline-flex;
    margin: 0;
}

.user-account-action .btn {
    white-space: nowrap;
}

.stat-chip {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--cream);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark-brown);
    font-weight: 500;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #4A2C2A;
    color: white;
}

.role-staff {
    background: #8B5E3C;
    color: white;
}

.role-customer {
    background: #D2A679;
    color: #2C1810;
}

.badge-current {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--success-green);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.helper-text {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-users .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-stats {
        flex-wrap: wrap;
    }

    .user-search-form input {
        flex-basis: 100%;
        min-width: 0;
    }

    .data-table .actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .data-table .actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-brown));
    color: var(--cream);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 3px solid var(--accent-gold);
}

.btn-settings {
    background: linear-gradient(135deg, #2C1810, #4A2C2A);
    color: #F5DEB3;
    border: 2px solid #8B5E3C;
}

/* ============================================
   LOGIN PAGE COFFEE BACKGROUND STYLES
   ============================================ */

.login-page body {
    background: url('/donmsystem/assets/images/coffee-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
}

.login-page body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 24, 16, 0.6);
    z-index: 0;
}

.login-page .wrapper {
    background: transparent !important;
    backdrop-filter: none !important;
    position: relative;
    z-index: 1;
}

.login-page .main-content {
    background: rgba(255, 248, 240, 0.92) !important;
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    padding: 2rem !important;
    max-width: 480px;
    margin: 2rem auto;
}

.login-page .navbar {
    background: rgba(44, 24, 16, 0.85) !important;
}


.footer p {
    opacity: 0.9;
}

.badge-dine-in {
    background: #2e7d32;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

.badge-take-out {
    background: #1565c0;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
}

/* ============================================
   SHARED RESPONSIVE LAYOUT
   ============================================ */
.role-dashboard {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
}

.dashboard-sidebar {
    position: sticky;
    top: 96px;
    width: 100%;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(210, 166, 121, 0.32);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar-header h3 {
    margin: 0 0 0.8rem;
    color: var(--primary-brown);
    font-size: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    min-height: 54px;
    padding: 0.8rem 0.85rem;
    color: var(--dark-brown);
    background: rgba(210, 166, 121, 0.12);
    border: 1px solid rgba(139, 94, 60, 0.18);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-nav .nav-item:hover {
    color: var(--primary-brown);
    background: rgba(210, 166, 121, 0.28);
    border-color: var(--light-brown);
}

.sidebar-nav .nav-item.active {
    color: var(--off-white);
    background: var(--primary-brown);
    border-color: var(--primary-brown);
}

.sidebar-nav .nav-item:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

.sidebar-nav .nav-icon {
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.sidebar-nav .nav-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-content {
    min-width: 0;
}

.dashboard-content>.dashboard-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.dashboard-stats .stat-card {
    min-width: 0;
    padding: 1rem 0.65rem;
    border-radius: var(--border-radius);
}

.dashboard-stats .stat-icon {
    font-size: 1.8rem;
}

.dashboard-stats .stat-value {
    font-size: 1.55rem;
    overflow-wrap: anywhere;
}

.dashboard-stats .stat-label {
    font-size: 0.8rem;
}

.role-dashboard .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.85fr);
    gap: 1rem;
    margin-bottom: 0;
}

.role-dashboard .dashboard-grid .dashboard-card {
    min-width: 0;
    padding: 1.2rem;
}

.role-dashboard .order-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 0;
    max-height: none;
    margin-bottom: 1rem;
    padding: 0;
    overflow: visible;
}

.role-dashboard .order-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    background: #fbf8f3;
    border: 1px solid rgba(210, 166, 121, 0.28);
    border-radius: 6px;
}

.role-dashboard .order-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    min-width: 0;
}

.role-dashboard .order-number {
    font-size: 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.role-dashboard .order-date {
    color: var(--secondary-brown);
    font-size: 0.78rem;
    white-space: nowrap;
}

.role-dashboard .order-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    white-space: nowrap;
}

.role-dashboard .order-status .status-badge {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
}

.role-dashboard .order-total {
    font-size: 0.9rem;
    font-weight: 700;
}

.role-dashboard .points-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.role-dashboard .points-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(210, 166, 121, 0.25);
}

.role-dashboard .points-item:last-child {
    border-bottom: 0;
}

.role-dashboard .points-name {
    min-width: 0;
    color: var(--dark-brown);
    font-size: 0.9rem;
    font-weight: 600;
}

.role-dashboard .points-used {
    flex: 0 0 auto;
    color: var(--error-red);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.role-dashboard .dashboard-grid .dashboard-card:last-child {
    grid-column: 1 / -1;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
}

.profile-info p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .main-content {
        width: calc(100% - 2rem);
    }

    .role-dashboard {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .role-dashboard .dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .role-dashboard .dashboard-grid .dashboard-card:last-child {
        grid-column: auto;
    }

    .co-grid,
    .pos-grid,
    .settings-grid,
    .product-detail-container {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    }

    .pos-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body::before,
    body::after {
        background-attachment: scroll;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .nav-container {
        gap: 0.5rem;
    }

    .nav-brand a {
        font-size: 1.2rem;
    }

    .nav-toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .nav-menu {
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-menu a,
    .nav-menu .user-greeting {
        width: 100%;
        padding: 0.7rem 0.75rem;
    }

    .main-content {
        width: auto;
        max-width: none;
        margin: 0.75rem;
        padding: 1rem;
        border-radius: 6px;
    }

    body .wrapper .main-content {
        padding: 1rem !important;
    }

    .footer {
        padding: 1.25rem 1rem;
        margin-top: 1.5rem;
    }

    .container,
    .admin-dashboard,
    .staff-dashboard,
    .pos-container,
    .settings-container,
    .staff-settings-container,
    .cart-container,
    .co-container,
    .role-dashboard,
    .product-detail-container {
        max-width: 100%;
        min-width: 0;
    }

    .role-dashboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    .dashboard-sidebar {
        position: static;
        width: 100%;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
        overflow: visible;
    }

    .sidebar-nav .nav-item:last-child {
        grid-column: 1 / -1;
    }

    .dashboard-content {
        min-width: 0;
    }

    .role-dashboard .order-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.4rem;
    }

    .role-dashboard .order-info {
        flex-wrap: wrap;
    }

    .role-dashboard .order-status {
        justify-content: space-between;
    }

    .dashboard-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .co-grid,
    .pos-grid,
    .settings-grid,
    .product-detail-container,
    .cart-grid,
    .dashboard-grid,
    .order-info-grid,
    .order-details-grid,
    .settings-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .stats-grid,
    .dashboard-stats,
    .staff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .co-pay-grid,
    .qr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row,
    .filter-form .form-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .filter-form,
    .filter-row,
    .page-header,
    .dashboard-header,
    .board-header {
        align-items: stretch;
        gap: 0.75rem;
    }

    .filter-form>*,
    .filter-row>*,
    .page-header>* {
        min-width: 0;
        max-width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-control,
    .co-textarea,
    .pos-search input,
    .search-group input,
    .search-input,
    .filter-form input,
    .filter-form select {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        font-size: 16px;
    }

    .btn,
    button,
    input[type="submit"] {
        min-height: 42px;
        max-width: 100%;
    }

    .action-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-responsive,
    .orders-table-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 620px;
    }

    .data-table td,
    .data-table th {
        white-space: normal;
    }

    .modal-content,
    .auth-card,
    .auth-card-wide,
    .co-form-card,
    .form-card {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-card,
    .auth-card-wide {
        padding: 1.25rem;
    }

    .notification-dropdown {
        width: min(360px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
        right: 0;
    }

    img,
    video,
    canvas,
    iframe {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.65rem 0.75rem;
    }

    .nav-brand a {
        font-size: 1.05rem;
    }

    .main-content {
        margin: 0.5rem;
        padding: 0.8rem;
    }

    .stats-grid,
    .staff-stats,
    .co-pay-grid,
    .qr-grid,
    .action-buttons {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-header h1,
    .page-header h1 {
        font-size: 1.4rem;
        overflow-wrap: anywhere;
    }

    .orders-board-container {
        padding: 0.75rem;
    }

    .pos-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .co-container,
    .pos-container,
    .settings-container,
    .staff-settings-container,
    .cart-container {
        padding-left: 0;
        padding-right: 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

.confirmation-container {
    width: min(100%, 820px);
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.confirmation-card {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(210, 166, 121, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(44, 24, 16, 0.12);
}

.confirmation-card .success-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: #e8f5e9;
    border-radius: 50%;
    font-size: 2.25rem;
}

.confirmation-card > h1,
.confirmation-card > p {
    text-align: center;
}

.confirmation-card > h1 {
    color: var(--primary-brown);
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.confirmation-card > p {
    margin: 0.5rem 0 1.75rem;
    color: var(--secondary-brown);
}

.confirmation-card .order-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    margin-bottom: 1.75rem;
    padding: 0.5rem 1rem;
    background: var(--off-white);
    border: 1px solid rgba(210, 166, 121, 0.25);
    border-radius: var(--border-radius);
}

.confirmation-card .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(210, 166, 121, 0.25);
}

.confirmation-card .detail-row:last-child {
    border-bottom: 0;
}

.confirmation-card .detail-row > span:first-child {
    color: var(--secondary-brown);
}

.confirmation-card .detail-row strong {
    color: var(--dark-brown);
    text-align: right;
    overflow-wrap: anywhere;
}

.confirmation-card > h3 {
    margin: 0 0 0.75rem;
    color: var(--primary-brown);
}

.confirmation-items {
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    background: #fff;
    border: 1px solid rgba(210, 166, 121, 0.25);
    border-radius: var(--border-radius);
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(210, 166, 121, 0.2);
}

.confirmation-item:last-child {
    border-bottom: 0;
}

.confirmation-item span:first-child {
    min-width: 0;
    color: var(--dark-brown);
    overflow-wrap: anywhere;
}

.confirmation-item span:last-child {
    flex: 0 0 auto;
    color: var(--primary-brown);
    font-weight: 700;
    white-space: nowrap;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.confirmation-actions .btn {
    min-width: 180px;
    text-align: center;
}

@media (max-width: 768px) {
    .confirmation-container {
        margin: 1rem auto;
    }

    .confirmation-card .order-details {
        gap: 0 0.85rem;
        padding: 0.25rem 0.85rem;
    }

    .confirmation-card .detail-row {
        gap: 0.5rem;
        font-size: 0.92rem;
    }
}

@media (max-width: 560px) {
    .confirmation-container {
        padding: 0;
    }

    .confirmation-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .confirmation-card .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.9rem;
    }

    .confirmation-card > p {
        margin-bottom: 1.25rem;
    }

    .confirmation-card .order-details {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 1.25rem;
    }

    .confirmation-card .detail-row {
        border-bottom: 1px solid rgba(210, 166, 121, 0.25);
    }

    .confirmation-card .detail-row:last-child {
        border-bottom: 0;
    }

    .confirmation-item {
        gap: 0.75rem;
        font-size: 0.92rem;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn {
        width: 100%;
        min-width: 0;
    }
}