.control-label {
 font-size: 13px;
 font-weight: 600;
 color: #6c757d;
 margin-bottom: 8px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
 display: flex;
 align-items: center;
}

.preview-area {
 min-height: 400px;
 display: flex;
 justify-content: center;
 align-items: center;
 cursor: pointer;
}

.frame-wrapper {
 width: 100%;
 margin: 0 auto;
}

.photo-container {
 width: 100%;
 border-radius: 8px;
 overflow: hidden;
 position: relative;
}

#aspectContainer {
 position: relative;
 width: 100%;
 height: 0;
 overflow: hidden;
}

#photoMoveContainer {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 overflow: visible;
 z-index: 1;
}

#uploadedPhoto {
 width: auto !important;
 height: auto !important;
 max-width: 100%;
 max-height: 100%;
 object-fit: cover;
 cursor: grab;
 z-index: 1;
 transform-origin: 0 0;
 will-change: transform;
 touch-action: none;
 -webkit-user-select: none;
 user-select: none;
}

#uploadedPhoto:active {
 cursor: grabbing;
}

#uploadedPhoto.dragging {
 cursor: grabbing;
}

.text-layer {
 position: absolute;
 cursor: move;
 user-select: none;
 z-index: 30;
 text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
 white-space: nowrap;
 pointer-events: auto !important;
 touch-action: none;
 -webkit-user-select: none;
}

.text-layer:active {
 cursor: grabbing;
}

.text-layer-item {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 8px 12px;
 background: white;
 border-radius: 8px;
 margin-bottom: 5px;
 cursor: pointer;
 transition: all 0.2s;
 border: 1px solid #eee;
}

.text-layer-item:hover {
 background: #f0f7ff;
 border-color: #007bff;
}

.text-layer-item.active {
 background: #e3f2fd;
 border-color: #007bff;
}

.text-layer-preview {
 display: flex;
 align-items: center;
 gap: 10px;
 overflow: hidden;
}

.text-number {
 width: 24px;
 height: 24px;
 background: #6c757d;
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 12px;
 font-weight: bold;
 flex-shrink: 0;
}

.text-layer-item.active .text-number {
 background: #007bff;
}

.text-sample {
 font-weight: 500;
 max-width: 150px;
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
 font-size: 13px;
}

.delete-text-btn {
 color: #dc3545;
 background: none;
 border: none;
 padding: 4px 8px;
 border-radius: 4px;
 transition: all 0.2s;
 flex-shrink: 0;
}

.delete-text-btn:hover {
 background: #ffebee;
}
     
#textEditor {
 background: #f8f9fa;
 border: 1px solid #dee2e6;
}

#textEditor .form-group label {
 font-size: 12px;
 font-weight: 500;
 color: #495057;
 margin-bottom: 4px;
}

#textEditor .form-control {
 font-size: 13px;
}

#textLayersList {
 max-height: 100%; 
 overflow-y: auto; 
 border: 1px solid #dee2e6; 
 border-radius: 6px; 
 padding: 8px;
}

#customFontsList {
 max-height: 100px;
 overflow-y: auto;
 background: #f8f9fa;
 border: 1px solid #dee2e6;
 border-radius: 6px;
 padding: 8px;
}

#customFontsList ul {
 margin: 0;
 padding: 0;
}

#customFontsList li {
 font-size: 12px;
}

#customFontsList .btn-link {
 padding: 0 5px;
 font-size: 14px;
}

#backgroundPosition {
 font-size: 13px;
}

#positionHint {
 font-size: 11px;
 color: #6c757d;
 font-style: italic;
}

#notification {
 display: none;
 align-items: center;
 gap: 10px;
 font-weight: 500;
 animation: slideIn 0.3s ease;
}

.frame-png {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 pointer-events: none;
 z-index: 10;
 background-size: 100% 100%;
 background-repeat: no-repeat;
 background-position: center;
}

#textLayersContainer {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: 15;
 overflow: hidden;
 pointer-events: none;
}

.upload-hint {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 background: rgba(0,0,0,0.8);
 color: white;
 padding: 15px;
 border-radius: 50px;
 font-size: 18px;
 z-index: 15;
 cursor: pointer;
 display: flex;
 align-items: center;
 gap: 10px;
 pointer-events: auto;
 transition: all 0.3s;
}

.upload-hint:hover {
 background: rgba(0,0,0,0.9);
 transform: translate(-50%, -50%) scale(1.05);
}

#photoMoveContainer {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 overflow: visible;
 z-index: 1;
}

@keyframes slideIn {
 from {
 transform: translateX(100%);
 opacity: 0;
 }
 to {
 transform: translateX(0);
 opacity: 1;
 }
}
 
@media (max-width: 768px) { 
 .text-layer-item {
 padding: 6px 10px;
 }
 
 .text-sample {
 max-width: 100px;
 }
}    
 .button-color-block {
 display: flex;
 align-items: center;
 justify-content: space-evenly; 
}