/**
 * Dijital Menü - Ana CSS Dosyası
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Admin paneli için özel CSS değişkenleri */
:root {
    --admin-primary-color: #3490dc;
    --admin-secondary-color: #38c172;
    --admin-text-color: #333333;
    --admin-background-color: #ffffff;
    --admin-light-gray: #f8f9fa;
    --admin-dark-gray: #343a40;
    --admin-danger-color: #e3342f;
    --admin-warning-color: #ffed4a;
    --admin-info-color: #6cb2eb;
    --admin-success-color: #51d88a;
    
    /* Ön yüz için CSS değişkenleri index.php dosyasında tanımlanıyor */
}

/* Genel Stiller */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--admin-text-color);
    background-color: var(--admin-light-gray);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--admin-primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--admin-secondary-color);
}

/* Menü Başlık */
.menu-header {
    background-color: var(--header-bg-color, #333);
    color: var(--header-text-color, white);
    padding: 10px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 65px;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.menu-title {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    color: white;
}

.site-logo {
    max-height: 40px;
    width: auto;
}

.table-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-left: 10px;
}

.language-selector .btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.9rem;
    padding: 5px 15px;
}

.language-selector .dropdown-menu {
    min-width: 100px;
    border-radius: 5px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobil Uyumluluk - Header */
@media (max-width: 576px) {
    .menu-header {
        height: 55px;
        padding: 8px 0;
    }
    
    .site-logo {
        max-height: 30px;
    }
    
    .menu-title {
        font-size: 1.2rem;
    }
    
    .language-selector .btn {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

/* Footer kaldırıldı */

/* Menü Öğeleri */
.menu-item {
    background-color: var(--menu-item-bg-color, white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--menu-item-shadow, rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--menu-item-hover-shadow, rgba(0, 0, 0, 0.1));
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 15px 10px;
}

.menu-item-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 15px 10px;
    flex-grow: 1;
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 15px 15px;
}

.menu-item-badge {
    margin-right: 5px;
}

/* Alerjen Rozeti */
.allergen-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 3px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.allergen-badge img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Kategori Grid Düzeni - Asimetrik Tasarım */
.category-grid-container {
    padding: 75px 15px 100px; /* Üstte header, altta bottom menu için boşluk */
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    background-color: var(--background-color);
    overflow-y: auto; /* Dikey kaydırma ekle */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(120px, auto);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px; /* Alt menü için ekstra boşluk */
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--category-card-shadow, rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    background-color: var(--category-card-bg, #f8f8f8);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--category-card-hover-shadow, rgba(0, 0, 0, 0.15));
}

/* Asimetrik düzen için farklı boyutlar */
.category-card:nth-child(8n+1) {
    grid-row: span 2;
    grid-column: span 1;
}

.category-card:nth-child(8n+2) {
    grid-row: span 1;
    grid-column: span 1;
}

.category-card:nth-child(8n+3) {
    grid-row: span 1;
    grid-column: span 1;
}

.category-card:nth-child(8n+4) {
    grid-row: span 2;
    grid-column: span 1;
}

.category-card:nth-child(8n+5) {
    grid-row: span 1;
    grid-column: span 1;
}

.category-card:nth-child(8n+6) {
    grid-row: span 2;
    grid-column: span 1;
}

.category-card:nth-child(8n+7) {
    grid-row: span 2;
    grid-column: span 1;
}

.category-card:nth-child(8n+8) {
    grid-row: span 1;
    grid-column: span 1;
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, var(--category-card-gradient-start, rgba(0,0,0,0.7)), var(--category-card-gradient-end, rgba(0,0,0,0)));
    z-index: 2;
}

.category-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--category-card-text, white);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.category-card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet için grid düzeni */
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .category-card-name {
        font-size: 1.4rem;
    }
}

/* Büyük ekranlar için grid düzeni */
@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}

/* Mobil için grid düzeni */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card-name {
        font-size: 1rem;
    }
    
    .category-card-content {
        padding: 10px;
    }
}

/* Category Header */
.category-header {
    padding: 30px 20px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.category-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

/* Menu Items Container */
.menu-items-container {
    padding: 0 15px;
    padding-bottom: 70px; /* Alt menü için boşluk */
}

/* Menu Item Card */
.menu-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 15px 10px;
    color: var(--primary-color);
}

.menu-item-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0 15px 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.menu-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--menu-item-price-color, var(--primary-color));
    margin: 0 15px 15px;
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--menu-item-price-bg, rgba(52, 144, 220, 0.1));
    border-radius: 20px;
}

/* Modern Kart Tasarımı - Tamamen Yeniden Tasarlandı */
.menu-item-horizontal {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--menu-item-bg-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 16px;
    position: relative;
}

.menu-item-horizontal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Mobil için kart tasarımı */
.menu-item-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.menu-item-image-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item-horizontal:hover .menu-item-image-horizontal {
    transform: scale(1.05);
}

.menu-item-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Menü Öğesi Başlık ve Açıklama */
.menu-item-header {
    margin-bottom: 8px;
    overflow: hidden;
}

.menu-item-title {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--menu-item-title-color, #333);
    line-height: 1.3;
}

.menu-item-description {
    margin: 0;
    font-size: 0.85rem;
    color: var(--menu-item-desc-color, #666);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

/* Arama sonuçları için özel stil */
#searchResults .menu-item-title,
#searchResults .menu-item-description {
    overflow: visible;
    text-overflow: clip;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: normal;
}

/* Menü Öğesi Alt Kısmı */
.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--menu-item-border-color, #f0f0f0);
}

.menu-item-price-container {
    flex: 0 0 auto;
}

.menu-item-price {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--menu-item-price-color, var(--primary-color));
    margin: 0;
}

.menu-item-badges-container {
    display: flex;
    justify-content: flex-end;
}

.menu-item-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu-item-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alerjenler Bölümü */
.menu-item-allergens {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--menu-item-border-color, #f0f0f0);
}

.allergens-title {
    display: block;
    color: var(--menu-item-desc-color, #666);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allergens-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.allergen-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--allergen-bg-color, #f5f5f5);
    border-radius: 4px;
    padding: 2px 6px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    box-shadow: 0 1px 2px var(--allergen-shadow, rgba(0, 0, 0, 0.05));
}

.allergen-badge img {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

/* Tablet için grid tasarımı */
@media (min-width: 768px) {
    .menu-items-container .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .menu-items-container .col-12 {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-bottom: 0;
    }
    
    .menu-item-horizontal {
        height: 100%;
        margin-bottom: 0;
    }
    
    .menu-item-title {
        font-size: 1.15rem;
    }
    
    .menu-item-description {
        font-size: 0.9rem;
    }
}

/* Büyük ekranlar için daha geniş grid */
@media (min-width: 992px) {
    .menu-items-container .row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .menu-item-image-container {
        height: 180px;
    }
}

/* Ekstra büyük ekranlar için daha geniş grid */
@media (min-width: 1200px) {
    .menu-items-container .row {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Bottom Menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bottom-menu-color, #fff);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--bottom-menu-item-color, #777);
    position: relative;
    width: 25%;
}

.bottom-menu-item:hover, .bottom-menu-item:active {
    color: var(--primary-color);
}

.bottom-menu-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.bottom-menu-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.bottom-menu-item.active {
    color: var(--primary-color);
}

.bottom-menu-item.active i {
    transform: scale(1.1);
}

.bottom-menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Overlay Sidebar */
.overlay-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.overlay-sidebar.active {
    left: 0;
}

.overlay-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
}

.overlay-sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.overlay-sidebar-content {
    padding: 15px;
}

.sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar-section h4 i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: var(--social-link-bg, #f5f5f5);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--social-link-hover-bg, var(--primary-color));
    color: var(--social-link-hover-text, white);
}

.social-link i {
    margin-right: 5px;
}

/* WiFi Password */
.wifi-button {
    width: 100%;
    margin-top: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.wifi-button:hover {
    background-color: var(--button-primary-hover-bg, #2779bd);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wifi-button i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.wifi-password-container {
    margin-top: 10px;
    padding: 10px;
    background-color: var(--light-gray, #f5f5f5);
    border-radius: 5px;
}

.wifi-info {
    font-size: 0.9rem;
}

.wifi-info p {
    margin-bottom: 5px;
}

/* Info Overlay */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg-color, rgba(0, 0, 0, 0.7));
    z-index: 1200;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px 0;
}

.info-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.info-overlay-content {
    width: 90%;
    max-width: 400px;
    background-color: var(--overlay-content-bg, white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--overlay-content-shadow, rgba(0, 0, 0, 0.2));
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--contact-header-bg-color, var(--primary-color));
    color: var(--contact-header-text-color, white);
}

.info-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--contact-header-text-color, white);
}

.info-header .btn-close,
.overlay-sidebar-header .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--contact-header-text-color, white);
    cursor: pointer;
    padding: 0;
    opacity: 1;
    display: block !important;
    visibility: visible !important;
}

.info-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: var(--contact-bg-color, white);
    color: var(--contact-text-color, #333);
}

.info-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.info-section h4 i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.wifi-detail {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wifi-detail i {
    margin-right: 10px;
    width: 20px;
    color: var(--primary-color);
}

.social-media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 5px;
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    margin-right: 0;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1200;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.search-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.search-overlay-content {
    width: 90%;
    max-width: 500px;
    padding: 25px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-overlay-content .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid rgba(var(--primary-color-rgb), 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-overlay-content .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(var(--primary-color-rgb), 0.2);
}

.search-overlay-content .btn {
    border-radius: 50px;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.search-overlay-content .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
}

.search-overlay-content .btn-secondary {
    background-color: #f5f5f5;
    color: var(--text-color);
    border: none;
}

.search-overlay-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Overlay Background */
.overlay-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.overlay-background.active {
    display: block;
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Dil Seçici */
.language-selector {
    margin-right: 10px;
}

.language-selector img {
    border-radius: 3px;
}

/* RTL (Sağdan Sola) Dil Desteği */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .language-selector {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .header-left {
    flex-direction: row-reverse;
}

[dir="rtl"] .table-info {
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .menu-item-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .menu-item-badges {
    justify-content: flex-start;
}

[dir="rtl"] .allergen-badge img {
    margin-right: 0;
    margin-left: 4px;
}

[dir="rtl"] .sidebar-section h4 i,
[dir="rtl"] .info-section h4 i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .social-link i {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .wifi-button i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .wifi-detail i {
    margin-right: 0;
    margin-left: 10px;
}

/* Admin Panel Stiller */
.admin-sidebar {
    background-color: var(--admin-dark-gray);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link.active {
    color: white;
    background-color: var(--admin-primary-color);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.admin-content {
    padding: 20px;
    background-color: var(--admin-light-gray);
    min-height: 100vh;
}

.admin-card {
    background-color: var(--admin-background-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* Dashboard Kartları */
.dashboard-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.dashboard-card-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Site Logo */
.site-logo {
    max-height: 40px;
    width: auto;
}

/* Mobil Admin Header */
.mobile-admin-header {
    background-color: var(--admin-dark-gray);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-admin-header h4 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
}

.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .menu-header {
        padding: 10px 0;
    }
    
    .menu-title {
        font-size: 1.2rem;
    }
    
    .site-logo {
        max-height: 30px;
    }
    
    .menu-item-image {
        height: 150px;
    }
    
    /* Admin Sidebar Mobil Görünüm */
    .admin-sidebar {
        position: fixed !important;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
        display: block !important;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-content {
        width: 100%;
        padding-top: 70px; /* Mobil header için boşluk */
    }
    
    .dashboard-card-number {
        font-size: 2rem;
    }
    
    .full-category-strip .category-name {
        font-size: 1.1rem;
    }
    
    .bottom-menu-item i {
        font-size: 1.1rem;
    }
    
    .bottom-menu-item span {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .menu-title {
        font-size: 1rem;
    }
    
    .site-logo {
        max-height: 25px;
    }
    
    .language-selector .btn {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .full-category-strip .category-name {
        font-size: 1rem;
    }
}

/* Giriş Sayfası */
.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.login-card {
    background-color: var(--admin-background-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background-color: var(--admin-primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.login-body {
    padding: 30px;
}

.login-footer {
    background-color: var(--admin-light-gray);
    padding: 15px;
    text-align: center;
    border-top: 1px solid #eee;
}

/* QR Kod Stili */
.qr-code-container {
    text-align: center;
    margin-bottom: 20px;
}

.qr-code-image {
    max-width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
}

/* Tablo Stili */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Form Stili */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--admin-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 144, 220, 0.25);
}

/* Buton Stili */
.btn-primary {
    background-color: var(--admin-primary-color);
    border-color: var(--admin-primary-color);
}

.btn-primary:hover {
    background-color: var(--button-primary-hover-bg, #2779bd);
    border-color: var(--button-primary-hover-border, #2779bd);
}

.btn-success {
    background-color: var(--admin-secondary-color);
    border-color: var(--admin-secondary-color);
}

.btn-success:hover {
    background-color: var(--button-success-hover-bg, #2d995b);
    border-color: var(--button-success-hover-border, #2d995b);
}

/* Renk Seçici */
.form-control-color {
    width: 50px;
    height: 38px;
    padding: 0;
}

/* Önizleme Kartı */
.preview-card {
    margin-bottom: 15px;
}
