/* ========================
   VARIABLES & ROOT STYLES
   ======================== */
:root {
    --primary-color: #D4251D;
    --secondary-color: #8B4513;
    --accent-color: #DAA520;
    --light-bg: #FFF8F0;
    --dark-bg: #2C1810;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --border-color: #E8D5C4;
    --transition: all 0.3s ease;
}

/* ========================
   RESET & BASE STYLES
   ======================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================
   TYPOGRAPHY
   ======================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #555;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #FF3D35);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(212, 37, 29, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 37, 29, 0.4);
}

.btn-detail {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-detail:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.btn-secondary {
    background: #6C757D;
    color: var(--text-light);
}

.btn-secondary:hover {
    background: #5A6268;
    transform: translateY(-2px);
}

/* ========================
   NAVIGATION
   ======================== */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg), #3D2313);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ========================
   HERO SECTION
   ======================== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #D4251D 0%, #8B4513 100%),
                url('https://images.unsplash.com/photo-1495521821757-a1efb6729352?w=1200&h=800&fit=crop') center/cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(212, 37, 29, 0.7) 0%,
        rgba(139, 69, 19, 0.6) 50%,
        rgba(44, 24, 16, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1s ease;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s ease;
}

/* ========================
   FEATURES SECTION
   ======================== */
.features {
    padding: 60px 0;
    background: var(--text-light);
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 35px rgba(212, 37, 29, 0.2);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* ========================
   MENU SECTION
   ======================== */
.menu {
    padding: 80px 0;
    background: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 500px;
    margin: 1rem auto 0;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-card {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 37, 29, 0.2);
}

.menu-card.hidden {
    display: none;
}

.menu-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.8;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    flex-shrink: 0;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    display: block;
}

.menu-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10;
}

.menu-card:hover .menu-image img {
    transform: scale(1.1);
}

.menu-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 37, 29, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.btn-detail {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-detail:hover {
    background: var(--light-bg);
    transform: scale(1.05);
}

.menu-card:hover .menu-image .overlay {
    opacity: 1;
}

.menu-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-info h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.menu-info .origin {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.menu-info .description {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.4;
    flex-grow: 1;
}

.rating {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.95rem;
    margin-top: auto;
}

.rating i {
    margin-right: 2px;
    font-size: 1rem;
}

.rating-value {
    color: #666;
    margin-left: 0.3rem;
    font-weight: 500;
}

/* ========================
   ABOUT SECTION
   ======================== */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg), var(--text-light));
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--primary-color);
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 20px 30px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.about-content h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--text-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.stat-item h4 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #666;
    margin: 0;
}

/* ========================
   CONTACT SECTION
   ======================== */
.contact {
    padding: 80px 0;
    background: var(--text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(212, 37, 29, 0.1);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 50px;
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(212, 37, 29, 0.2);
}

/* ========================
   GALLERY SECTION
   ======================== */
.gallery {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-bg), var(--text-light));
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 37, 29, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(1deg);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 37, 29, 0.9), rgba(139, 69, 19, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--text-light);
    text-align: center;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================
   FOOTER
   ======================== */
.footer {
    background: linear-gradient(135deg, var(--dark-bg), #3D2313);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #DDD;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: #DDD;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #DDD;
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================
   SECTION VISIBILITY
   ======================== */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* ========================
   SEARCH MODAL STYLES
   ======================== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.search-modal-content {
    position: relative;
    z-index: 5001;
    background: var(--text-light);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--text-light);
}

.search-header h2 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 1.8rem;
    padding-bottom: 0;
}

.search-header h2::after {
    display: none;
}

.search-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.search-input-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    margin: 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.search-input-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(212, 37, 29, 0.2);
}

.search-input-container i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    outline: none;
    padding: 0;
}

#searchInput::placeholder {
    color: #999;
}

.search-results {
    padding: 1.5rem;
    min-height: 200px;
}

.search-hint {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

.search-result-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
}

.search-result-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(212, 37, 29, 0.2);
}

.search-result-image {
    width: 120px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-result-info {
    flex: 1;
}

.search-result-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.search-result-origin {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-result-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.search-result-rating {
    color: var(--accent-color);
}

.search-result-rating i {
    margin-right: 2px;
}

.search-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.search-empty i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
    display: block;
}

/* ========================
   LOGIN & AUTHENTICATION STYLES
   ======================== */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

.login-box {
    background: var(--text-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #999;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.auth-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-tab-btn:hover {
    color: var(--secondary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    transition: var(--transition);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(212, 37, 29, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.btn-login,
.btn-register {
    width: 100%;
    margin-top: 1rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 2px solid #C3E6CB;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 2px solid #F5C6CB;
}

.form-message p {
    margin: 0;
}

.login-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-box {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.illustration-box i {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.illustration-box h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
    padding-bottom: 0;
}

.illustration-box h2::after {
    display: none;
}

.illustration-box p {
    color: #666;
    max-width: 300px;
    margin: 0 auto;
}

/* ========================
   TRANSACTION STYLES
   ======================== */
.user-info-bar {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    text-align: center;
    font-size: 1.1rem;
    display: none;
}

.user-info-bar.active {
    display: block;
}

.transactions-section {
    min-height: calc(100vh - 100px);
    padding: 40px 0;
    background: var(--text-light);
    overflow-x: hidden;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.transactions-header h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin: 0;
}

.transaction-form-container {
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.form-box {
    max-width: 600px;
}

.form-box h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

#transactionForm {
    display: grid;
    gap: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.form-actions .btn {
    flex: 1;
}

.transactions-table-container {
    background: var(--text-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table thead {
    background: var(--secondary-color);
    color: var(--text-light);
}

.transactions-table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.transactions-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.transactions-table tbody tr:hover {
    background: var(--light-bg);
    transition: var(--transition);
}

.transactions-table .empty-state {
    text-align: center;
    padding: 2rem !important;
    color: #999;
}

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.status.pending {
    background: #FFF3CD;
    color: #856404;
}

.status.selesai {
    background: #D4EDDA;
    color: #155724;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin: 0 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-edit:hover {
    background: #D4A017;
    transform: scale(1.05);
}

.btn-danger {
    background: #DC3545;
    color: var(--text-light);
}

.btn-danger:hover {
    background: #C82333;
    transform: scale(1.05);
}

.transactions-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, var(--light-bg), #FFF);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    text-align: center;
}

.summary-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.summary-value {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* ========================
   LOGIN/LOGOUT LINK
   ======================== */
.logout-link {
    color: #FF6B6B !important;
}

.logout-link:hover {
    color: #FF5252 !important;
}

/* ========================
   MENU DETAIL MODAL
   ======================== */
.menu-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.menu-detail-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.menu-detail-header {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
}

.menu-detail-content h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    border: none;
    padding: 0;
}

.detail-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.detail-item:last-of-type {
    border-bottom: none;
}

.detail-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.detail-item label i {
    font-size: 1.3rem;
}

.detail-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    padding-left: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================
   WARNING NOTIFICATION OVERLAY
   ======================== */
.warning-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.warning-notification-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.warning-notification-content i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.warning-notification-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.warning-notification-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.warning-notification-content .btn {
    width: 100%;
    margin: 0;
}

/* ========================
   WARNING NOTIFICATION (OLD STYLE - KEPT FOR REFERENCE)
   ======================== */

/* ========================
   RESPONSIVE DESIGN
   ======================== */
/* Tablet & iPad */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .menu-image {
        aspect-ratio: 1 / 0.75;
    }

    .transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .transactions-header h1 {
        font-size: 2rem;
    }

    .transactions-header .btn {
        width: auto;
    }

    .transaction-form-container {
        padding: 1.5rem;
    }

    .transactions-table {
        font-size: 0.9rem;
    }

    .transactions-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large mobile devices */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .menu-image {
        aspect-ratio: 1 / 0.8;
    }

    .menu-info {
        padding: 1.2rem;
    }

    .menu-info h3 {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .login-container {
        grid-template-columns: 1fr;
    }

    .login-illustration {
        display: none;
    }

    .login-box {
        padding: 2rem;
    }

    .transactions-header {
        flex-direction: column;
        gap: 1rem;
    }

    .transactions-header h1 {
        font-size: 2rem;
    }

    .transactions-header .btn {
        width: 100%;
    }

    .transactions-section {
        padding: 20px 0;
    }

    .transactions-header {
        margin-bottom: 2rem;
    }

    .transaction-form-container {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .form-box {
        max-width: 100%;
    }

    .form-box h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #transactionForm {
        gap: 1rem;
    }

    .transactions-table-container {
        margin-bottom: 2rem;
        overflow-x: auto;
    }

    .transactions-table {
        font-size: 0.85rem;
        min-width: 500px;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 0.6rem 0.4rem;
    }

    .transactions-table th {
        font-size: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .form-actions .btn {
        width: 100%;
    }

    .transactions-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .transactions-table {
        font-size: 0.75rem;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 0.5rem 0.3rem;
    }

    .transaction-form-container {
        padding: 1rem;
    }

    .form-box {
        padding: 0;
    }

    .form-box h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

/* Small mobile devices (landscape) */
@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .menu-image {
        aspect-ratio: 1 / 0.9;
    }

    .menu-info {
        padding: 1rem;
    }

    .menu-info h3 {
        font-size: 1.1rem;
    }

    .menu-info .description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .rating {
        font-size: 0.85rem;
    }

    .transactions-header {
        flex-direction: column;
        gap: 1rem;
    }

    .transactions-header h1 {
        font-size: 1.7rem;
        width: 100%;
    }

    .transactions-header .btn {
        width: 100%;
    }

    .transaction-form-container {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .form-box h2 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }

    .transactions-table {
        font-size: 0.8rem;
        min-width: 100%;
    }

    .transactions-table th,
    .transactions-table td {
        padding: 0.6rem 0.5rem;
    }

    .transactions-table th {
        font-size: 0.7rem;
    }

    .transactions-summary {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .summary-card {
        padding: 1.5rem;
    }

    .summary-card h3 {
        font-size: 0.95rem;
    }

    .summary-value {
        font-size: 1.5rem;
    }
}

/* Small mobile devices (portrait) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h2::after {
        width: 100%;
    }

    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .transactions-header {
        margin-bottom: 1.5rem;
    }

    .transactions-header h1 {
        font-size: 1.5rem;
    }

    .transactions-header .btn {
        width: 100%;
        font-size: 0.85rem;
        padding: 8px 15px;
    }

    .transaction-form-container {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .form-box {
        padding: 0;
    }

    .form-box h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }

    #transactionForm {
        gap: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .form-actions {
        gap: 0.5rem;
    }

    .form-actions .btn {
        font-size: 0.8rem;
        padding: 8px 12px;
        width: 100%;
    }

    .transactions-table-container {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .transactions-table {
        font-size: 0.75rem;
        min-width: 600px;
    }

    .transactions-table th {
        font-size: 0.65rem;
        padding: 0.5rem 0.3rem;
        text-transform: capitalize;
    }

    .transactions-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .transactions-table th,
    .transactions-table td {
        text-align: left;
    }

    .status {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .btn-small {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin: 2px;
    }

    .transactions-summary {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .summary-card {
        padding: 1rem;
        border-radius: 8px;
    }

    .summary-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .summary-value {
        font-size: 1.2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .menu-image {
        aspect-ratio: 1 / 0.85;
    }

    .menu-card {
        max-width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.9rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .menu-image {
        aspect-ratio: 1 / 0.9;
    }

    .menu-info {
        padding: 0.8rem;
    }

    .menu-info h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .menu-info .origin {
        font-size: 0.85rem;
    }

    .menu-info .description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}
