/* GENEL AYARLAR */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 50px;
}

/* ANA UYGULAMA KUTUSU */
.main-app-area {
    height: 650px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-top: 30px;
    margin-bottom: 50px;
    border: 1px solid #e0e0e0;
}

/* 3D CANVAS */
#canvas-wrapper {
    width: 100%;
    height: 100%;
    background: #e9ecef; /* Yüklenmeden önceki renk */
    position: relative;
    outline: none;
}

/* SAĞ ÜST BİLGİ KUTUSU (BOYUT & SÜRE) */
#model-info-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(40, 40, 40, 0.9);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 25;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    pointer-events: none; /* Arkadaki modele tıklanabilsin */
    min-width: 160px;
    display: none; /* Başlangıçta gizli */
    border: 1px solid rgba(255,255,255,0.1);
}
#model-info-panel div { margin-bottom: 5px; }
#model-info-panel div:last-child { margin-bottom: 0; }
#model-info-panel i { width: 20px; text-align: center; color: #adb5bd; }

/* SOL ÜST KONTROL PANELİ */
.control-panel {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(33, 37, 41, 0.85);
    padding: 10px;
    border-radius: 8px;
    z-index: 20;
    color: white;
    font-size: 0.85rem;
    width: 170px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    pointer-events: auto;
}

/* YÜKLEME EKRANI (OVERLAY) */
#drop-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Arka plan tıklamayı engellemesin */
    transition: all 0.3s;
}

/* DRAG & DROP AKTİFKEN */
#canvas-wrapper.drag-active #drop-overlay {
    background: rgba(255, 255, 255, 0.9);
    border: 4px dashed #0d6efd;
    opacity: 1 !important;
    display: flex !important;
}

/* YÜKLEME KARTI */
.upload-card {
    pointer-events: auto; /* Buton tıklanabilsin */
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-align: center;
    border: 1px solid #eee;
}

/* RENK PALETİ */
.color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px 0;
}
.color-swatch {
    width: 28px; height: 28px;
    border-radius: 6px; cursor: pointer;
    border: 1px solid rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.color-swatch:hover { transform: scale(1.15); z-index: 2; }
.color-swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0d6efd;
    transform: scale(1.1); z-index: 3; border-color: transparent;
}

/* DİĞERLERİ */
.sidebar { overflow-y: auto; height: 100%; border-left: 1px solid #eee; background: white; }
.model-card { cursor: pointer; transition: 0.3s; border: none; overflow: hidden; }
.model-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.model-card img { height: 150px; object-fit: cover; background: #eee; }