    /*
    * DOSYA: simulator.css
    * KONUM: wwwroot/css/simulator.css

    * 
    * AÇIKLAMA: Renk simülatörü modülünün (Interactive Color Visualizer) stilleri.
    * Canvas alanı, renk paleti, fırça araçları ve upload alanını içerir.
    */

    /*  
    [YATAY EKRAN UYARISI] - Landscape Warning
    Telefonda dikey tutuluyorsa uyarı vererek yatay çevrilmesini ister.
    */
    .landscape-warning-overlay {
        display: none;
        /* Varsayılan olarak gizli */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        z-index: 99999;
        /* En üstte */
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
    }

    .landscape-warning-content i {
        font-size: 5rem;
        margin-bottom: 1.5rem;
        display: block;
        animation: rotatePhone 2s ease-in-out infinite;
        /* Telefon döndürme animasyonu */
    }

    @keyframes rotatePhone {

        0%,
        100% {
            transform: rotate(0deg);
        }

        25% {
            transform: rotate(-15deg);
        }

        /* Sola */
        75% {
            transform: rotate(15deg);
        }

        /* Sağa */
    }

   
    @media only screen and (max-width: 767.98px) and (orientation: portrait) {
        /* NOT: Kullanıcı deneyimi tercihi olarak şu an kapalı tutulabilir veya JS ile tetiklenebilir.
        Şimdilik sadece landscape modda özel bir layout sunuyoruz. */
    }

    /* [SİMÜLATÖR KAPSAYICI] */
    .simulator-section {
        padding: 3rem 0 5rem;
    }

    /* [SİMULATÖR BAŞLIĞI] - Global layout.css (.page-header) kullanılıyor */

    @media (max-width: 768px) {
        .simulator-header h1 {
            font-size: 2rem;
            /* 3rem'den küçültüldü */
        }
    }

    /* [KANVAS ALANI] - Preview Section
    Resmin yüklendiği ve boyamanın yapıldığı alan.
    */
    .simulator-preview-wrapper {
        background: var(--white);
        border-radius: var(--radius-xl);
        padding: 1.5rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        /* Daha yumuşak gölge */
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .preview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .preview-header h3 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

    .preview-container {
        position: relative;
        background: #f8f9fa;
        /* Daha açık gri */
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 400px;
        /* Görseldeki gibi daha yüksek */
    }

    #roomCanvas {
        display: block;
        max-width: 100%;
        max-height: 80vh;
        height: auto;
        width: auto;
        cursor: crosshair;
        image-rendering: -webkit-optimize-contrast;
        touch-action: none;
    }

    /* [YÜKLENİYOR İKONU] */
    .canvas-loading {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9);
        display: none;
        align-items: center;
        justify-content: center;
    }

    /* [DOSYA YÜKLEME] - Drag & Drop alanı */
    .upload-section h4 {
        font-size: 1.25rem;
        /* 1rem -> 1.25rem */
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }

    .upload-section p {
        font-size: 1rem !important;
        /* small class'ını büyüt */
        color: #6c757d;
        margin-bottom: 1rem;
    }

    .upload-area {
        border: 2px dashed #dee2e6;
        /* Daha açık gri çizgi */
        border-radius: 12px;
        padding: 3rem 2rem;
        text-align: center;
        cursor: pointer;
        transition: all var(--transition-fast);
        background: white;
        margin-top: 1rem;
        color: #6c757d;
    }

    .upload-area:hover,
    .upload-area.dragover {
        border-color: var(--primary-color);
        background: rgba(37, 99, 235, 0.02);
        color: var(--primary-color);
    }

    .upload-area i {
        font-size: 2rem;
        display: block;
        margin-bottom: 1rem;
        color: inherit;
    }

    /* [RENK PALETİ] - Sticky Sidebar (Sağ Panel) */
    .color-palette-wrapper {
        background: var(--white);
        border-radius: var(--radius-xl);
        padding: 1.5rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 100px;
    }

    .color-palette-wrapper h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    /* Input Alanları */
    .color-input-group label {
        font-weight: 600;
        font-size: 0.85rem;
        color: #495057;
        margin-bottom: 0.4rem;
    }

    /* [ÖZEL RENK TETİKLEYİCİ] */
    .custom-color-trigger {
        display: flex;
        align-items: center;
        gap: 12px;
        background: white;
        border: 1px solid #dee2e6;
        padding: 10px 15px;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }

    .custom-color-trigger:hover {
        border-color: var(--primary-color);
        background: #fcfdfe;
        box-shadow: 0 4px 8px rgba(37, 99, 235, 0.08);
    }

    .trigger-swatch {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        background-color: var(--primary-color);
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
    }

    .custom-color-trigger span {
        font-weight: 500;
        font-size: 0.95rem;
        color: #334155;
    }

    .custom-color-trigger i {
        color: #94a3b8;
        font-size: 1rem;
    }

    /* Seçili Renk Göstergesi - Görseldeki tasarım */
    .selected-color-display {
        background-color: #f8f9fa;
        /* Hafif gri zemin */
        border-radius: 12px;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .selected-color-preview {
        width: 48px;
        height: 48px;
        border-radius: 8px;
        /* Hafif köşeli */
        box-shadow: none;
        flex-shrink: 0;
    }

    .selected-color-info {
        display: flex;
        flex-direction: column;
    }

    .color-name {
        font-weight: 600;
        font-size: 0.95rem;
        color: #212529;
    }

    .color-hex {
        font-family: monospace;
        font-size: 0.85rem;
        color: #6c757d;
    }

    /* Renk Kategorileri */
    .color-category {
        margin-bottom: 1.5rem;
    }

    .color-category h4 {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #6c757d;
        font-weight: 700;
        margin-bottom: 0.75rem;
        letter-spacing: 0.5px;
    }

    .color-swatches {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Renk Kutucukları (Swatch) - YUVARLAK */
    .color-swatch-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px; /* Modern karemsi yuvarlak */
        border: 2px solid white;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    @media (max-width: 768px) {
        .color-swatch-btn {
            width: 40px; /* Mobilde daha kolay tıklama için büyütüldü */
            height: 40px;
        }
    }

    .color-swatch-btn:hover {
        transform: scale(1.2);
        z-index: 1;
    }

    /* Seçili durumu */
    .color-swatch-btn.selected {
        transform: scale(1.2);
        box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
    }

    /* Seçili olana tik işareti EKLEME - Görselde tik yok, sadece highlight var gibi */
    .color-swatch-btn.selected::after {
        display: none;
    }

    /* MOBİL UYUMLULUK */
    @media (max-width: 991.98px) {
        .color-palette-wrapper {
            position: static;
            margin-top: 2rem;
        }
    }

    @media (max-width: 768px) {
        .color-palette-wrapper {
            padding: 1.25rem;
            margin-top: 1.5rem;
            border-radius: var(--radius-lg);
        }

        .color-swatch-btn {
            width: 44px; /* Mobilde parmak için ideal boyut */
            height: 44px;
        }

        .color-swatches {
            gap: 10px;
            justify-content: flex-start;
        }

        .selected-color-display {
            padding: 0.85rem;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid rgba(0,0,0,0.05);
        }
    }

    /* Yatay Mod (Landscape) için optimizasyon */
    @media (max-width: 991.98px) and (orientation: landscape) {
        #roomCanvas {
            max-height: 60vh !important;
            /* Ekranı kaplamasın, kaydırmaya gerek kalmasın */
            margin: 0 auto;
        }
    }

    /* [BEFORE / AFTER SLIDER] */
    .before-after-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: var(--radius-lg);
        cursor: col-resize;
        user-select: none;
        line-height: 0;
        margin-top: 1rem;
        touch-action: pan-y;
        /* Dokunmatik kaydırmayı engelle (Slider için kritik) */
        -webkit-user-select: none;
    }

    /* Arka plandaki resim (After) */
    .before-after-container img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }

    /* Üstteki resim (Before) - Maskelenmiş */
    .before-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        clip-path: inset(0 50% 0 0); /* JS ile değişecek */
    }

    .before-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* Slider Tutamacı */
    /* Slider Tutamacı */
    .slider-handle {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 44px;
        height: 44px;
        background: #ffffff;
        border-radius: 50%;
        pointer-events: auto;
        /* Sürüklenebilmesi için GEREKLİ */
        cursor: ew-resize;
        /* Yatay ok imleci */
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        z-index: 10;
        color: #495057;
        font-size: 1.2rem;
    }

    /* Ok İkonu (Unicode) */
    .slider-handle::after {
        content: '↔';
        font-family: sans-serif;
        font-weight: 300;
        border: none;
        padding: 0;
        position: relative;
        z-index: 2;
        /* Çizginin üstünde kalsın */
    }

    /* Dikey Çizgi (Visible Line) */
    .slider-handle::before {
        display: block !important;
        content: '';
        position: absolute;
        top: -5000px;
        /* Yukarı uzat */
        bottom: -5000px;
        /* Aşağı uzat */
        left: 50%;
        width: 3px;
        background: white;
        transform: translateX(-50%);
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    /* Etiketler */
    .before-label,
    .after-label {
        position: absolute;
        top: 20px;
        background: #212529;
        /* Tam siyah/koyu */
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        /* Pill shape */
        font-size: 0.75rem;
        font-weight: 700;
        pointer-events: none;
        z-index: 5;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .before-label {
        left: 20px;
    }

    .after-label {
        right: 20px;
    }

    /* MOBİL DÜZENLEMELER (Butonlar ve Başlıklar) */
    @media (max-width: 768px) {
        .preview-header {
            flex-direction: column;
            align-items: stretch !important;
            gap: 1rem;
        }

        .preview-header h3 {
            text-align: center;
            margin-bottom: 0.5rem;
        }

        .preview-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: center;
        }

        .preview-actions .btn {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 0.5rem 1rem;
            /* Daha rahat dokunma alanı */
        }
    }

    /* ==========================================
       YAPAY ZEKA (AI) STİLLERİ
       ========================================== */

    /* [AI YÜKLEME EKRANI] - Model indirilirken canvas üzerine bindirilir */
    .ai-loading-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 20;
        border-radius: var(--radius-lg);
    }

    .ai-loading-content {
        text-align: center;
        max-width: 320px;
        padding: 2rem;
    }

    .ai-loading-icon {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        animation: aiBounce 1.5s ease-in-out infinite;
    }

    @keyframes aiBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    .ai-loading-content h5 {
        font-weight: 600;
        margin-bottom: 1rem;
        color: #212529;
    }

    .ai-progress-bar {
        height: 8px;
        border-radius: 4px;
        overflow: hidden;
    }

    /* [AI DURUM ÇUBUĞU] - Yapay zekanın mevcut durumunu gösterir */
    .ai-status-bar {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .ai-status-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .ai-status-ready {
        background-color: #198754;
        box-shadow: 0 0 6px rgba(25, 135, 84, 0.5);
    }

    .ai-status-processing {
        background-color: #ffc107;
        animation: aiPulse 1s ease-in-out infinite;
    }

    .ai-status-error {
        background-color: #dc3545;
    }

    @keyframes aiPulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
    }

    /* [AI TIKLAMA GÖSTERGESİ] - Kullanıcının tıkladığı noktada animasyonlu daire */
    .ai-click-indicator {
        position: absolute;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: rgba(25, 135, 84, 0.4);
        border: 2px solid rgba(25, 135, 84, 0.8);
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 100;
        animation: aiClickRipple 0.8s ease-out forwards;
    }

    @keyframes aiClickRipple {
        0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
        100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
    }

    /* [AI TOAST BİLDİRİMİ] - Kısa bilgi mesajları */
    .ai-toast {
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        background: #212529;
        color: white;
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 0.9rem;
        z-index: 9999;
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        max-width: 90vw;
        text-align: center;
    }

    .ai-toast-show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    /* [BOYA TİPİ SEÇİMİ] */
    .paint-finish-control .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }
