/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header Section */
.header-section {
    position: relative;
    height: 150px;
    background: #3cf376 var(--header-bg, none) no-repeat center center/cover;
    /* background: url('../images/pastane-header.jpg') no-repeat center center; */
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Sidebar */
#sidebar-wrapper {
    min-height: calc(100vh - 150px);
    margin-left: -250px;
    transition: margin 0.25s ease-out;
    width: 250px;
    position: fixed;
    z-index: 1000;
    top: 250px;
    background-color: #f8f9fa;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    background-color: #f1f1f1;
}

#sidebar-wrapper .list-group {
    width: 100%;
}

#page-content-wrapper {
    min-width: 100vw;
    margin-left: 0;
    transition: margin 0.25s ease-out;
    margin-top: 50px;
    padding-top: 0;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    left: 10px;
    top: 160px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6d4c41 !important;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

/* Ürün Kartları */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    background-color: #fff;
}

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

.product-card img {
    height: 300px;
    object-fit: cover;
}

.order-btn {
    transition: all 0.3s;
    font-weight: 600;
}

.order-btn:hover {
    transform: scale(1.02);
    background-color: #198754;
}

/* Footer Section */
.footer-section {
    background-color: #343a40;
    margin-top: 50px;
}

.footer-section h5 {
    color: #ffc107;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 10px;
}
.social-icons a .fa-lg {
    line-height: inherit; /* Font Awesome line-height'ı ezecek */
    vertical-align: middle;
    transform: translateY(-1px); /* 1px lik mikro ayar */
}

.social-icons a {
      vertical-align: middle; 
    align-items: center;
    justify-content: center;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s; 
}

.social-icons a:hover {
    background-color: #ffc107;
    color: #343a40 !important;
}

/* Garson Çağır Butonu */
.call-waiter {
    z-index: 1050;
}

/* Responsive */
@media (max-width: 1900px) {
    #sidebar-wrapper {
        margin-left: -250px;
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        top: 270px;
    }
    
    .header-section {
        height: 180px;
    }
    
    #sidebar-wrapper {
        top: 180px;
    }
    
    #page-content-wrapper {
        margin-top: 180px;
    }
}

@media (max-width: 768px) {
    .product-card img {
        height: 230px;
    }
    
    .header-section {
        height: 120px;
    }
    
    #sidebar-wrapper {
        top: 120px;
    }
    
    #page-content-wrapper {
        margin-top: 120px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .sidebar-toggle {
        top: 140px;
    }
}
/* Garson Çağır Butonu - Temel Stil */
.call-waiter {
    position: fixed;
    top: 25px;
    left: 10px;
    z-index: 900;
}

.call-waiter .btn {
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.call-waiter .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Mobil Uyarlamalar */
@media (max-width: 992px) {
    .call-waiter {
        top: 20px;
        left: 8px;
    }
    
    .call-waiter .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .call-waiter {
        top: 15px;
        left: 5px;
    }
    
    .call-waiter .btn-lg {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .call-waiter .btn i.fas {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .call-waiter {
        top: 10px;
        left: 5px;
        
    }
    
    .call-waiter .btn-lg {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 0.3rem;
    }
    
    
    .call-waiter .btn i.fas {
        font-size: 0.9rem;
        margin-right: 3px;
    }
    
    /* Ekstra küçük ekranlar için metni tamamen gizleyip sadece ikon gösterme */
    @media (max-width: 400px) {
        .call-waiter .btn span {
            display: none;
        }
        
        .call-waiter .btn i.fas {
            margin-right: 0;
            font-size: 1rem;
        }
        
        .call-waiter .btn-lg {
            width: 36px;
            height: 36px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }
    }
}
/* Mobilde yuvarlak buton için düzenleme */
@media (max-width: 400px) {
    #garsonBtn .btn {
        /* Yuvarlak buton boyutları */
        width: 50px;
        height: 50px;
        border-radius: 50% !important;
        padding: 0;
        
        /* İçeriği merkezleme */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #garsonBtn .btn i.fas {
        /* İkonu merkeze al */
        margin-right: 0 !important;
        transform: translateX(0); /* Varsa kaymayı sıfırla */
    }
    
    #garsonBtn .btn span {
        /* Metni tamamen gizle */
        display: none;
    }
}
/* Tablo mobil uyumlu stil */
@media (max-width: 992px) {
    .modal-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .table {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        background-color: transparent;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 5px;
    }
    
    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        border-top: none;
        border-bottom: 1px solid #dee2e6;
    }
    
    .table tbody td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
    }
    
    .table tbody td:last-child {
        border-bottom: none;
    }
    
    .table tbody tr td:nth-child(1):before { content: "No:"; }
    .table tbody tr td:nth-child(2):before { content: "Ürün İsmi:"; }
    .table tbody tr td:nth-child(3):before { content: "Açıklama:"; }
    .table tbody tr td:nth-child(4):before { content: "Fiyat:"; }
    .table tbody tr td:nth-child(5):before { content: "Kategori:"; }
    .table tbody tr td:nth-child(6):before { content: "Resim:"; }
    .table tbody tr td:nth-child(7):before { content: "Değiştir:"; }
    .table tbody tr td:nth-child(8):before { content: "Sil:"; }
    
    .img-thumbnail {
        max-width: 60px !important;
    }
    
    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}
/* Mobilde ID gösterimi */
@media (max-width: 992px) {
    .product-id-mobile {
        background-color: #e9ecef;
        color: #495057;
        text-align: center;
        font-size: 1.1rem;
        font-weight: bold;
        padding: 10px;
        margin: 5px 0;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .product-id-mobile::before {
        content: "Ürün No:";
        margin-right: 8px;
        font-weight: normal;
        color: #6c757d;
    }

    /* ID'den sonraki hücrelere üst border ekleme */
    .table tbody tr td:nth-child(2) {
        border-top: 2px solid #dee2e6;
    }
}