/* Dara Cafe — Custom Styles */

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero slideshow */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Navbar scrolled state */
#navbar.scrolled {
    background: rgba(26, 20, 13, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

#navbar.scrolled-light {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled-light .nav-logo-text,
#navbar.scrolled-light .nav-link {
    color: #2d2318 !important;
}

#navbar.scrolled-light .nav-link:hover {
    color: #f58220 !important;
}

/* Menu cards */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(45, 35, 24, 0.12);
}

.menu-card img {
    transition: transform 0.5s ease;
}

.menu-card:hover img {
    transform: scale(1.05);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background-color: #f58220;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #ff9a3c;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: 2px solid white;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: white;
    color: #1a140d;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border: 2px solid #4a3a28;
    color: #4a3a28;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #4a3a28;
    color: white;
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e0cdb3;
    background-color: white;
    color: #1a140d;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #c9952f;
    border-color: transparent;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a3a28;
    margin-bottom: 0.375rem;
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Admin shell */
body.admin-shell {
    background: linear-gradient(135deg, #f9f2e8 0%, #f5eadf 100%);
}

.admin-shell .admin-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(74, 58, 40, 0.08);
    box-shadow: 0 16px 45px rgba(45, 35, 24, 0.08);
    backdrop-filter: blur(10px);
}

.admin-shell .admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 55px rgba(45, 35, 24, 0.12);
}

.admin-shell .admin-page-header {
    background: linear-gradient(90deg, rgba(201, 149, 47, 0.16), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(201, 149, 47, 0.18);
}

.admin-shell .admin-stat-card {
    position: relative;
    overflow: hidden;
}

.admin-shell .admin-stat-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201, 149, 47, 0.16), transparent 70%);
}

.admin-shell .admin-table th {
    background: #fcf7f0;
    letter-spacing: 0.02em;
}

.admin-shell .admin-table tbody tr:hover {
    background: #fffaf4;
}

/* Admin sidebar */
.admin-sidebar a.active {
    background-color: rgba(201, 149, 47, 0.2);
    color: #d4a853;
    border-left: 2px solid #c9952f;
}

/* Status badges */
.badge-pending { background-color: #fef9c3; color: #854d0e; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-confirmed { background-color: #dbeafe; color: #1e40af; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-preparing { background-color: #f3e8ff; color: #6b21a8; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-ready { background-color: #dcfce7; color: #166534; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-delivered { background-color: #d1fae5; color: #065f46; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-cancelled { background-color: #fee2e2; color: #991b1b; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-approved { background-color: #dcfce7; color: #166534; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.badge-declined { background-color: #fee2e2; color: #991b1b; padding: 0.125rem 0.5rem; border-radius: 9999px; }

/* Filter buttons */
.filter-btn.active {
    background-color: #4a3a28;
    color: white;
}

/* Line clamp utility */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Language switcher on light navbar */
#navbar.scrolled-light .lang-switcher {
    border-color: rgba(45, 35, 24, 0.15);
    background: rgba(250, 248, 245, 0.9);
}

#navbar.scrolled-light .lang-switcher a:not(.active-lang) {
    color: #4a3a28;
}

#navbar.scrolled-light .lang-switcher a:not(.active-lang):hover {
    color: #f58220;
}
