/* Tasarım Editörü CSS */
.designer-main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.designer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.designer-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.designer-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 1.5rem;
    margin-top: 2rem;
}

.designer-sidebar {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 100px;
}

.designer-sidebar::-webkit-scrollbar {
    width: 6px;
}

.designer-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.designer-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.designer-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.tool-section {
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.tool-section:last-child {
    margin-bottom: 0;
}

.tool-section h3 {
    font-size: 0.9rem;
    margin: 0;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    background: #f9fafb;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
    user-select: none;
}

.tool-section h3:hover {
    background: #f3f4f6;
}

.tool-section h3::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform 0.2s;
    color: #9ca3af;
}

.tool-section.open h3::after {
    transform: rotate(180deg);
}

.tool-section.open h3 {
    border-bottom: 1px solid var(--border-color);
}

.tool-section h3 i {
    color: var(--primary-color);
}

.tool-section-content {
    padding: 1rem;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.tool-section.open .tool-section-content {
    display: block;
}

/* Scrollbar stilleri */
.tool-section-content::-webkit-scrollbar {
    width: 6px;
}

.tool-section-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tool-section-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tool-section-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.designer-canvas-area {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.canvas-toolbar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.canvas-container {
    background: #f5f5f5;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Canvas ortalama */
.designer-canvas-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#designCanvas {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.canvas-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.designer-order-panel {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.price-breakdown {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 6px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Renk Seçici - Yuvarlak Palet */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.color-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.color-preview:hover {
    transform: scale(1.1);
}

.color-input {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    width: 50px;
    height: 50px;
}

.color-hex-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
}

.color-hex-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Çıkartma Grid */
.stickers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
}

.sticker-item {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.sticker-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close-modal:hover {
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .designer-wrapper {
        grid-template-columns: 250px 1fr 280px;
    }
}

@media (max-width: 968px) {
    .designer-wrapper {
        grid-template-columns: 1fr;
    }
    
    .designer-sidebar,
    .designer-order-panel {
        position: static;
    }
    
    .canvas-container {
        min-height: 400px;
    }
}

