/* Ultra Premium T-Shirt Designer Studio Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

.tshirt-studio-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: #fdfdfd;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 40px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    overflow: hidden;
    min-height: 700px;
}

.studio-sidebar {
    width: 320px;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.studio-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #111;
    letter-spacing: -0.5px;
}

.studio-section {
    margin-bottom: 30px;
}

.studio-section label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 15px;
    font-weight: 600;
}

.color-picker-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.color-btn.active::after {
    content: '';
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border: 2px solid #111;
    border-radius: 50%;
}

.prints-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.gallery-print-item {
    width: 100%;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.gallery-print-item:hover {
    border-color: #111;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.studio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-bottom: 12px;
    gap: 8px;
}

.studio-btn-outline {
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.studio-btn-outline:hover {
    background: #f8f9fa;
    border-color: #d1d1d1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.studio-btn-dark {
    background: #000;
    color: #fff;
}

.studio-btn-dark:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.studio-btn-primary {
    background: #000;
    color: #fff;
}

.studio-btn-primary:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.studio-btn-danger {
    background: #fff0f0;
    color: #d32f2f;
    border: 1px solid #ffdcdc;
}
.studio-btn-danger:hover {
    background: #ffe3e3;
}

.studio-help-text {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.4;
}

.studio-canvas-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    position: relative;
    padding: 40px;
}

.canvas-container-inner {
    position: relative;
    width: 450px;
    height: 550px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: background-color 0.4s ease;
}

#tshirt-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.drawing-area {
    position: absolute;
    top: 120px; 
    left: 125px; 
    width: 200px;
    height: 300px;
    z-index: 2;
    border: 1px dashed transparent;
    transition: border-color 0.3s;
}

.drawing-area:hover {
    border-color: rgba(0,0,0,0.2);
}

.studio-bottom-actions {
    display: flex;
    gap: 15px;
    width: 100%;
    max-width: 450px;
    margin-top: 30px;
}

/* Modal Styles */
.studio-modal {
    display: none; 
    position: fixed; 
    z-index: 999999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden;
    background-color: rgba(0,0,0,0.9); 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.studio-modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.studio-modal-content h2 {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.studio-modal-close {
    color: #999;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.studio-modal-close:hover {
    color: #000;
}

.preview-mockup-area {
    position: relative;
    width: 100%;
    background: #f9f9f9;
}

#preview-model-bg {
    width: 100%;
    display: block;
}

#preview-design-overlay {
    position: absolute;
    top: 25%;
    left: 32%;
    width: 35%;
    z-index: 2;
    mix-blend-mode: multiply;
}

/* Responsive */
@media (max-width: 800px) {
    .tshirt-studio-wrapper {
        flex-direction: column;
    }
    .studio-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .canvas-container-inner {
        width: 100%;
        max-width: 400px;
        height: 480px;
    }
    .drawing-area {
        left: 50%;
        transform: translateX(-50%);
    }
}
