/**
 * Müşteri Tasarım Sistemi - Stil Dosyası
 */

/* Genel */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

/* Tasarım Kartları */
.design-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-thumbnail {
    text-align: center;
    color: #6c757d;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
}

.price {
    font-size: 1.2rem;
    color: #28a745;
}

/* Canvas Container - Büyük ölçülerde orantılı görünüm için */
#canvas-container {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
    min-height: 400px;
    max-height: calc(100vh - 180px);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#konva-canvas {
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Araçlar Paneli */
#tool-panel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Katman Listesi */
.layer-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s;
}

.layer-item:hover {
    background: #f8f9fa;
}

.layer-item.active {
    background: #e7f3ff;
    border-left: 3px solid #007bff;
}

.layer-item i {
    margin-right: 8px;
    color: #6c757d;
}

.layer-group-children {
    padding-left: 16px;
    border-left: 2px solid #e9ecef;
    margin-left: 8px;
}

.layer-item-child .layer-drag-handle-child {
    opacity: 0.6;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#loading-overlay .spinner {
    text-align: center;
    color: white;
}

#loading-overlay .spinner i {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ürün Seçenekleri */
.product-options {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 20px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    margin: 15px 0;
}

/* Butonlar */
.btn-group-vertical .btn {
    margin-bottom: 10px;
}

.btn-save-draft {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-save-draft:hover {
    background: #e0a800;
    border-color: #d39e00;
}

/* Responsive */
@media (max-width: 768px) {
    #canvas-container {
        padding: 10px;
    }
    
    .card-img-container {
        height: 200px;
    }
    
    .product-options {
        margin-bottom: 20px;
    }
}

/* Coloris Override */
.clr-field button {
    width: 100%;
    height: 38px;
    border-radius: 4px;
}

/* Auto-save indicator */
#save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
}

#save-indicator.show {
    display: block;
}

#save-indicator.saving {
    color: #ffc107;
}

#save-indicator.saved {
    color: #28a745;
}

#save-indicator.error {
    color: #dc3545;
}
