/* ============== VARIABLA GLOBALE ============== */
:root {
    --primary-color: #c19a6b;    /* Ngjyra kryesore (kafe) */
    --secondary-color: #333;     /* Teksti kryesor */
    --light-color: #f8f9fa;     /* Sfond i çelët */
    --dark-color: #212529;      /* Sfond i errët */
    --header-height: 56px;      /* Lartësia e header */
}

/* ============== STILET BAZË & TIPOGRAFI ============== */
body {
    font-family: 'Montserrat', sans-serif;
    padding-top: var(--header-height);
    color: var(--secondary-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* ============== KOMPONENTA KRYESORE ============== */
/* Header & Navigimi */
.main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1060 !important; /* Mbi sidebar-in (1050) */
}

.navbar {
    background-color: #ffffff !important;
    transition: all 0.3s;
    border-bottom: 1px solid #e0e0e0;
}

.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-brand .restaurant-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Stilet e përgjithshme për lidhjet e navigimit */
.nav-link {
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    color: #333333 !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover:after {
    width: 100%;
}

/* ============== SEKSIONET E FAQES KRYESORE ============== */
/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
}

.carousel-caption {
    bottom: 30%;
    text-align: left;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-left: 5px solid var(--primary-color);
}

/* Feature Boxes */
.feature-box {
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Gallery */
.gallery-thumb {
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-thumb:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Reservation Section */
#reservation {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/reservation-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Form Elements */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--light-color);
}

/* Footer styling to match tables.php */
.footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 70px !important;
    right: 0 !important;
    height: 40px !important;
    padding: 4px 0 !important;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
}

.footer .container-fluid {
    padding: 0 15px !important;
    height: 100% !important;
}

.footer .row {
    margin: 0 !important;
    height: 100% !important;
}

.footer .col-md-4 {
    padding: 0 8px !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.footer small {
    font-size: 0.7rem !important;
    line-height: 1 !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.footer .fw-bold,
.footer .badge,
.footer span {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}

.footer p.small {
    font-size: 0.65rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.footer .fas.fa-clock {
    font-size: 0.9rem !important;
}

.footer .badge {
    padding: 2px 6px !important;
    font-size: 0.65rem !important;
}

.footer .d-flex {
    gap: 8px !important;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .footer {
        left: 0 !important;
        height: auto !important;
        padding: 8px 0 !important;
    }
    
    .footer .col-md-4 {
        margin-bottom: 4px !important;
        justify-content: center !important;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
}

.contact-info li, 
.opening-hours li {
    margin-bottom: 10px;
    list-style: none;
    padding-left: 0;
}

.contact-info i, 
.opening-hours i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* ============== RESPONSIVE DESIGN ============== */
@media (max-width: 991px) {
    .carousel-caption {
        bottom: 20%;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Rregullime specifike për tablet */
}

@media (max-width: 576px) {
    /* Rregullime specifike për mobile */
}

/* ============== SIDEBAR MOBILE STYLES ============== */
/* Sidebar për mobile - i ngushtë me vetëm ikona */
@media (max-width: 991px) {
    #sidebar {
        position: fixed !important;
        left: -70px !important; /* Fshehur by default */
        top: 60px !important;
        width: 70px !important;
        height: calc(100vh - 60px) !important;
        z-index: 1050 !important;
        transition: left 0.3s ease-in-out !important;
        overflow-x: hidden !important;
        background-color: #ffffff !important;
        border-right: 1px solid #e0e0e0 !important;
    }
    
    #sidebar.mobile-active {
        left: 0 !important;
    }
    
    /* Fshih tekstet, shfaq vetëm ikonat */
    #sidebar .menu-text {
        display: none !important;
    }
    
    #sidebar .nav-link {
        text-align: center !important;
        padding: 15px 10px !important;
        justify-content: center !important;
    }
    
    #sidebar .nav-link i {
        margin: 0 !important;
        font-size: 1.3rem !important;
    }
    
    /* Fshih badge-t në mobile */
    #sidebar .badge {
        display: none !important;
    }
    
    /* Fshih veprimet e shpejta dhe elementet e tjera */
    #sidebar .quick-action-btn,
    #sidebar h6,
    #sidebar .border-top,
    #sidebar .text-center.text-white-50 {
        display: none !important;
    }
    
    /* Dropdown menu për mobile - thjeshtuar */
    #sidebar .dropdown-toggle::after {
        display: none !important;
    }
    
    #sidebar .collapse {
        background-color: rgba(0, 0, 0, 0.2) !important;
    }
    
    #sidebar .collapse .nav-link {
        font-size: 0.9rem !important;
        padding: 12px 10px !important;
    }
    
    #sidebar .collapse .nav-link i {
        font-size: 1.1rem !important;
    }
}

/* Sidebar Overlay për mobile */
.sidebar-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Toggle Button Styling */
#sidebarToggleBtn {
    border: none;
    background: transparent;
    transition: transform 0.2s ease;
}

#sidebarToggleBtn:hover {
    transform: scale(1.1);
}

#sidebarToggleBtn:focus {
    box-shadow: none;
    outline: none;
}

/* Adjust main content when sidebar is hidden on mobile */
@media (max-width: 991px) {
    .main-content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ============== DROPDOWN MENU STYLES ============== */
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: background-color 0.15s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #16181b;
    background-color: #f8f9fa;
}

.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    background-color: var(--primary-color);
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,.15);
}

.dropdown-header {
    display: block;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6c757d;
    white-space: nowrap;
}

/* Avatar styles */
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50%;
    overflow: hidden;
}

/* Navbar dropdown positioning */
.navbar .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
}