/* Genel Stil Ayarları */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Hafif gri arka plan */
}

/* CYSH Uygulama Konteyneri */
#cysh-app-container {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Hafif gölge */
    transition: all 0.3s ease-in-out;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%); /* Hafif degrade */
}

/* Header */
#cysh-app-container .cysh-header {
    background: linear-gradient(90deg, #ff7e5f, #feb47b); /* Canlı turuncu degrade */
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#cysh-app-container .cysh-header .cysh-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

/* Sohbet Mesaj Alanı */
#cysh-chat-messages {
    background-color: #fdfdfd; /* Çok açık gri */
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23e5e7eb" fill-opacity="0.4" fill-rule="evenodd"%3E%3Cpath d="M5 0h1L0 6V5zM6 5v1H5z"/%3E%3C/g%3E%3C/svg%3E'); /* Hafif desenli arka plan */
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    flex-grow: 1;
}

/* Mesaj Baloncukları */
.cysh-message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1.25rem; /* Daha yuvarlak köşeler */
    max-width: 75%;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* Hafif gölge */
    transition: all 0.2s ease-in-out;
}

.cysh-message-bubble.sent {
    background: linear-gradient(135deg, #a78bfa, #8b5cf6); /* Mor degrade */
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0.25rem; /* Köşeyi sivrilterek konuşma balonu efekti */
}

.cysh-message-bubble.received {
    background: linear-gradient(135deg, #ffffff, #f0f4f8); /* Açık gri degrade */
    color: #333;
    margin-right: auto;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 0.25rem; /* Köşeyi sivrilterek konuşma balonu efekti */
}

.cysh-message-bubble.order-summary {
    background-color: #e0f2fe; /* Açık mavi */
    border: 1px solid #90cdf4;
    color: #1e40af;
}

.cysh-message-bubble.status-update {
    background-color: #d1fae5; /* Açık yeşil */
    border: 1px solid #6ee7b7;
    color: #065f46;
    text-align: center;
}

.cysh-message-bubble img {
    max-width: 100%;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

/* Mesaj Giriş Alanı */
#cysh-message-input-area {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

#cysh-message-input {
    border: 1px solid #cbd5e0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#cysh-message-input:focus {
    border-color: #f97316; /* Turuncu odak rengi */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Butonlar */
.cysh-btn, .tab-button {
    border-radius: 0.75rem; /* Daha yuvarlak */
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cysh-btn-primary {
    background: linear-gradient(45deg, #f97316, #fb923c); /* Turuncu degrade */
    color: white;
    border: none;
}

.cysh-btn-primary:hover {
    background: linear-gradient(45deg, #ea580c, #f97316); /* Koyu turuncu */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.cysh-btn-secondary {
    background-color: #cbd5e0;
    color: #4a5568;
    border: 1px solid #a0aec0;
}

.cysh-btn-secondary:hover {
    background-color: #a0aec0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(160, 174, 192, 0.3);
}

.cysh-icon-btn {
    background-color: #e2e8f0;
    color: #4a5568;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Tamamen yuvarlak */
    font-size: 1.25rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cysh-icon-btn:hover {
    background-color: #cbd5e0;
    color: #2d3748;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Genel Pop-up Stilleri */
.cysh-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cysh-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cysh-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.cysh-popup-overlay.active .cysh-popup-content {
    transform: scale(1);
}

.cysh-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.cysh-popup-close:hover {
    color: #333;
}

/* Dashboard Sekmeleri */
.cysh-dashboard-tabs .tab-button {
    background-color: transparent;
    color: #6b7280; /* Gri */
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 0; /* Köşeleri kaldırma */
}

.cysh-dashboard-tabs .tab-button.active {
    color: #f97316; /* Turuncu */
    border-color: #f97316;
    font-weight: 700;
}

/* Form Elemanları */
.cysh-form-group input[type="text"],
.cysh-form-group input[type="email"],
.cysh-form-group input[type="password"],
.cysh-form-group textarea,
.cysh-form-group select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease-in-out;
}

.cysh-form-group input[type="text"]:focus,
.cysh-form-group input[type="email"]:focus,
.cysh-form-group input[type="password"]:focus,
.cysh-form-group textarea:focus,
.cysh-form-group select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.cysh-form-group label {
    font-weight: 500;
    color: #4b5563;
}

/* Modal Stilleri (Yeni Menü Ekle vb.) */
.cysh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cysh-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cysh-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    max-width: 500px;
    width: 95%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.cysh-modal-overlay.active .cysh-modal-content {
    transform: translateY(0);
}

.cysh-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.cysh-modal-close:hover {
    color: #333;
}

/* Mesaj Bildirim Sesi */
.cysh-audio-player {
    display: none; /* Ses çaları gizle */
}

/* Loading Spinner */
.cysh-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    #cysh-app-container {
        margin: 1rem auto;
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
    }

    .cysh-message-bubble {
        max-width: 85%;
    }

    .cysh-popup-content, .cysh-modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        padding: 1rem;
    }

    .cysh-header .flex-col {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cysh-header .flex-col .text-sm {
        display: none; /* Küçük ekranlarda kullanıcı adını gizle */
    }
}

/* Authentication Panel Tabs */
#cysh-auth-panel .tab-button.active {
    border-color: #f97316;
    color: #f97316;
}

/* Error/Success Messages */
.message-error {
    color: #dc2626; /* Kırmızı */
    font-weight: 500;
}

.message-success {
    color: #16a34a; /* Yeşil */
    font-weight: 500;
}

/* Menü Kartları */
.menu-item-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.menu-item-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

/* Restoran Kartları */
.restaurant-card {
    background-color: #ffffff;
    border-radius: 12px;
    box_shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box_shadow 0.2s ease-in-out;
    border: 1px solid #e2e8f0;
}

.restaurant-card:hover {
    transform: translateY(-3px);
    box_shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.restaurant-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0;
}

/* Cart item */
.cart-item {
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child {
    border-bottom: none;
}
