/*
 * Canlı Yemek Sipariş Hattı Özel CSS Stilleri
 * Bu dosya, uygulamanın genel görünümünü ve hissini iyileştirmek için
 * Tailwind CSS sınıflarına ek olarak özel stiller içerir.
 */

/* Genel Vücut ve Uygulama Kapsayıcısı Stilleri */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f2f5; /* Hafif gri arka plan */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Uygulama tam ekranı kaplayacağı için dış scroll'u engelle */
}

#cysh-app-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh; /* Tam viewport yüksekliği */
    max-width: 1400px; /* Maksimum genişlik */
    background-color: #ffffff;
    border-radius: 1rem; /* Köşeleri daha yuvarlak */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* İçerik taşmasını engelle */
    transition: all 0.3s ease-in-out; /* Yumuşak geçişler */
}

/* Header Stilleri */
.cysh-header {
    padding: 1rem 1.5rem; /* Üst-alt 1rem, sağ-sol 1.5rem */
    background: linear-gradient(to right, #2563eb, #4f46e5); /* Mavi-mor gradient */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cysh-header .cysh-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cysh-header h1 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
}

/* Sol Panel (Navigasyon) Stilleri */
#cysh-left-panel {
    background-color: #1f2937; /* Koyu gri */
    color: #ffffff;
    width: 80px; /* Sabit genişlik */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.1);
}

.cysh-nav-btn {
    width: 90%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    border-radius: 0.5rem; /* rounded-lg */
    cursor: pointer;
    text-align: center;
}

.cysh-nav-btn i {
    font-size: 1.5rem; /* text-xl */
    margin-bottom: 0.25rem;
}

.cysh-nav-btn:hover {
    transform: translateY(-2px);
}

.cysh-nav-btn.bg-blue-700 {
    background-color: #1d4ed8; /* Daha koyu mavi */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Ortak Pop-up Stilleri (cysh-popup) */
.cysh-popup {
    z-index: 1000; /* Diğer her şeyin üstünde */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px); /* Hafif bulanıklık efekti */
}

.cysh-popup.flex {
    opacity: 1;
}

.cysh-popup > div {
    transition: all 0.3s ease-out;
}

/* Sohbet Baloncukları */
.message-bubble {
    position: relative;
    word-wrap: break-word; /* Uzun kelimeleri böler */
}

.message-bubble.bg-blue-600 {
    background-color: #2563eb;
}

.message-bubble.bg-gray-200 {
    background-color: #e5e7eb;
}

/* Sohbet İçeriği Alanı için özel scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px; /* Scrollbar genişliği */
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1; /* Scrollbar yolu rengi */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #888; /* Scrollbar rengi */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555; /* Scrollbar hover rengi */
}


/* Yükleme İndikatörü */
#cysh-loading-overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Koyu yarı saydam arka plan */
    z-index: 9999; /* En üstte olmalı */
}

.loader {
    border-top-color: #3498db; /* Mavi yükleme rengi */
    animation: spin 1s linear infinite; /* Animasyon */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    #cysh-app-container {
        border-radius: 0; /* Mobil cihazlarda tam ekran */
        height: 100vh;
        max-width: 100%;
        box-shadow: none;
    }

    .cysh-header {
        padding: 0.75rem;
    }

    .cysh-header .cysh-logo {
        width: 32px;
        height: 32px;
    }

    .cysh-header h1 {
        font-size: 1rem;
    }

    #cysh-left-panel {
        width: 60px; /* Daha dar sol panel */
        padding-top: 1rem;
    }

    .cysh-nav-btn {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .cysh-nav-btn i {
        font-size: 1.25rem; /* text-xl */
    }

    .cysh-nav-btn span {
        font-size: 0.625rem; /* text-xs, daha küçük */
    }

    #cysh-center-panel {
        padding: 0.75rem;
    }

    /* Sohbet alanı mobil görünüm */
    .cysh-chat-input-area {
        flex-wrap: wrap; /* Butonların alta geçmesini sağla */
        padding: 0.75rem;
    }

    .cysh-chat-input-area button,
    .cysh-chat-input-area input {
        margin-bottom: 0.5rem; /* Dikey boşluk ekle */
        flex-shrink: 0;
    }

    .cysh-chat-input-area #chat-message-input {
        width: 100%; /* Mesaj inputu tam genişlik */
        flex-grow: 1;
    }

    .message-bubble {
        max-width: 85% !important; /* Mesaj baloncuğu daha geniş */
    }

    .cysh-popup > div {
        max-width: 95%; /* Mobil pop-up genişliği */
    }
}
