body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

header, footer {
    text-align: center;
    background-color: #2c3e50;
    color: #fff;
    padding: 15px;
}

footer {
    font-size: 14px;
}

/* Layout */
.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    min-height: 80vh;
}

/* Controls Panel */
.controls {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.controls h2 {
    margin-top: 0;
    color: #2c3e50;
}

.controls label {
    font-weight: bold;
    margin-bottom: 3px;
}

.controls input,
.controls select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.controls select:disabled {
    background: #f1f1f1;
    cursor: not-allowed;
}

.controls button {
    margin-top: 10px;
    padding: 10px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.controls button:hover {
    background: #2ecc71;
}

/* Preview */
.preview {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview h2 {
    margin-bottom: 15px;
}

.shirt-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.shirt-container img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

/* Design Area */
.design-area {
    position: absolute;
    inset: 0;
    touch-action: none;
}

/* Text */
#textPreview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    text-align: center;
    word-break: break-word;
    font-weight: 600;
    cursor: grab;
    user-select: none;
    padding: 4px 6px;
}

/* Logo */
#logoPreview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    cursor: grab;
    border-radius: 6px;
    user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .controls {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .shirt-container {
        max-width: 360px;
    }
}
