/* Birleştirilmiş Ayarlar Menüsü Stilleri */
.unified-settings-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.unified-settings-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.unified-settings-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.unified-settings-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Başlangıçta gizli */
    width: 400px;
    height: 100vh;
    background: #2c3e50;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9997;
    overflow-y: auto;
    border-left: 1px solid #34495e;
    transition: right 0.3s ease-in-out;
}

.unified-settings-panel.show {
    right: 0; /* Açıldığında görünür */
}

/* Panel overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.panel-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Panel header için stil */
.panel-header {
    background: #34495e;
    padding: 20px;
    border-bottom: 1px solid #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    color: #ecf0f1;
    font-size: 18px;
    font-weight: 600;
}

.panel-close-btn {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.panel-close-btn:hover {
    background: #2c3e50;
}

/* Sipariş Ver Stilleri */
.waiter-call-wrapper {
    margin-right: 10px;
}

.waiter-call-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.waiter-call-btn:hover {
    background: linear-gradient(135deg, #ee5a24, #d63031);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.waiter-call-btn:active {
    transform: translateY(0);
}

.waiter-call-btn.active {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.waiter-call-btn.active .waiter-icon {
    animation: none;
}

.waiter-call-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.waiter-icon {
    font-size: 18px;
    animation: bellShake 2s infinite;
}

.waiter-text {
    font-weight: 600;
}

@keyframes bellShake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(5deg); }
    20%, 40%, 60%, 80% { transform: rotate(-5deg); }
}

/* Alışveriş Sepeti Stilleri (Kasiyer onayından sonra görünür) */
.shopping-cart-wrapper {
    margin-right: 10px;
}

.shopping-cart-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.shopping-cart-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.cart-icon {
    font-size: 18px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Modal Header Stilleri */
.modal-header {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    justify-content: flex-end !important;
}

.modal-close-x {
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer !important;
    padding: 6px 10px !important;
    border-radius: 50% !important;
    transition: background-color 0.2s ease !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    float: right !important;
    margin: 0 !important;
}

.modal-close-x:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Modal Content Override - Bootstrap border'ları kaldır */
.modal-content {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.modal-content .modal-header {
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* Modal Overlay ve Content için ek temizlik */
.modal-overlay .modal-content {
    border: none !important;
    outline: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 10001 !important;
    transform: none !important;
    margin: 0 !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

/* Bootstrap modal header stillerini tamamen override et */
.modal-overlay .modal-content .modal-header {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    justify-content: flex-end !important;
    flex-direction: row !important;
    align-items: flex-start !important;
}

.modal-overlay .modal-content .modal-header {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Bootstrap'in varsayılan modal stillerini tamamen override et */
.modal-content,
.modal-content *,
.modal-content *::before,
.modal-content *::after {
    border: none !important;
    outline: none !important;
}

/* Pseudo-element'lerdeki çizgileri kaldır */
.modal-header::before,
.modal-header::after,
.modal-content::before,
.modal-content::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

/* Modal header'ın altındaki çizgiyi özellikle kaldır */
.modal-header {
    border-bottom: none !important;
    border-bottom-width: 0 !important;
    border-bottom-style: none !important;
    border-bottom-color: transparent !important;
}

/* Sipariş Onay Modal Stilleri */
.order-confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.order-confirm-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.order-confirm-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.order-confirm-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.order-confirm-body {
    padding: 25px 20px;
    text-align: center;
    color: #333;
}

.order-confirm-body p {
    margin: 0 0 15px 0;
    line-height: 1.5;
    color: #666;
}

.order-status-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-icon {
    font-size: 20px;
}

.status-text {
    font-weight: 600;
    color: #495057;
}

.order-confirm-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

.order-confirm-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.order-confirm-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Modal Animasyonu */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Sipariş Ver Butonu */
.order-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.order-button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.order-button.disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.order-button.disabled:hover {
    background: #95a5a6;
    transform: none;
    box-shadow: none;
}

/* Alışveriş Sepeti Panel Stilleri */
.shopping-cart-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #2c3e50;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9997;
    overflow-y: auto;
    border-left: 1px solid #34495e;
    transition: right 0.3s ease-in-out;
}

.shopping-cart-panel.show {
    right: 0;
}

.cart-content {
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #ecf0f1;
}

.empty-cart-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.empty-cart p {
    margin: 10px 0;
    color: #bdc3c7;
}

.cart-items {
    color: #ecf0f1;
    margin-bottom: 30px;
}

.cart-items-header h4 {
    margin: 0 0 20px 0;
    color: #ecf0f1;
    font-size: 16px;
    border-bottom: 1px solid #34495e;
    padding-bottom: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #34495e;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #ecf0f1;
    font-size: 14px;
}

.cart-item-price {
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #34495e;
    border: none;
    color: #ecf0f1;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background: #2c3e50;
}

.quantity-value {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    text-align: right;
    min-width: 80px;
}

.total-price {
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 8px;
    font-size: 16px;
}

.remove-btn {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.remove-btn:hover {
    background: #c0392b;
}

.cart-summary {
    border-top: 1px solid #34495e;
    padding: 20px 0;
    margin-bottom: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #ecf0f1;
}

.total-amount {
    color: #27ae60;
    font-size: 20px;
}

.cart-footer {
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

.checkout-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.checkout-button:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

/* Mobil uyumluluk için sepet paneli */
@media (max-width: 768px) {
    .shopping-cart-panel {
        width: 100vw;
        right: -100vw;
    }
    
    .shopping-cart-panel.show {
        right: 0;
    }
}

.settings-section {
    border-bottom: 1px solid #34495e;
    margin: 0 20px;
}

.settings-section:last-child {
    border-bottom: none;
}

/* Akordiyon Header Stilleri */
.settings-section-header {
    background: #34495e;
    color: #ecf0f1;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.settings-section-header:hover {
    background: #2c3e50;
}

.section-title {
    font-weight: 600;
}

.section-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.section-arrow.expanded {
    transform: rotate(180deg);
}

/* Akordiyon Content Stilleri */
.settings-section-content {
    background: #2c3e50;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 300px;
        opacity: 1;
    }
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    gap: 12px;
    border-bottom: 1px solid #34495e;
    color: #ecf0f1;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background-color: #34495e;
}

.settings-item.active {
    background-color: #3498db;
}

.settings-item.active .checkmark {
    color: #1976d2;
    font-weight: bold;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #ddd;
}

.currency-symbol {
    font-weight: 600;
    color: #1976d2;
    min-width: 30px;
    text-align: center;
    font-size: 16px !important; /* Döviz simgelerini büyütmek için */
}

.currency-name {
    flex: 1;
    color: #ecf0f1;
    font-size: 14px;
}

.currency-rate {
    color: #bdc3c7;
    font-size: 12px;
    font-family: monospace;
}

.corporate-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.checkmark {
    color: #28a745;
    font-size: 16px;
    margin-left: auto;
}

.hamburger-icon {
    font-size: 18px;
    font-weight: bold;
}

.currency-symbol {
    font-weight: 600;
    color: #1976d2;
    min-width: 30px;
    text-align: center;
    font-size: 16px !important; /* Döviz simgelerini büyütmek için */
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .unified-settings-panel {
        width: 100vw;
        right: -100vw;
    }
    
    .unified-settings-panel.show {
        right: 0;
    }
    
    .settings-item {
        padding: 16px;
    }
    
    .settings-section-header {
        padding: 16px;
    }
}

/* Karanlık tema desteği */
@media (prefers-color-scheme: dark) {
    .unified-settings-dropdown-list {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .settings-section-header {
        background: #1a202c;
        color: #a0aec0;
        border-bottom-color: #4a5568;
    }
    
    .settings-section-header:hover {
        background: #2d3748;
    }
    
    .settings-item:hover {
        background-color: #4a5568;
    }
    
    .settings-item.active {
        background-color: #2c5282;
    }
    
    .currency-name {
        color: #e2e8f0;
    }
    
    .currency-rate {
        color: #a0aec0;
    }
    
    .unified-settings-dropdown-list::before {
        border-bottom-color: #2d3748;
    }
}

/* Siparişi Tamamla Butonu */
.complete-order-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.complete-order-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.complete-order-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}
