/* Banner Generator Styles */

.banner-item .banner-display {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.15);
}

.banner-item .banner-display img {
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 12px;
}

.banner-item .no-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #88aacc;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-bottom: 20px;
}

.banner-item .no-banner span {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.5;
}

.banner-item .llm-prompt-display {
    padding: 12px 15px;
    font-size: 0.9em;
    color: #88aacc;
    background: rgba(106, 252, 255, 0.05);
    border: 1px solid rgba(106, 252, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
}

.banner-item .banner-text-display {
    padding: 12px 15px;
    font-size: 0.9em;
    color: #f0f6fc;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Size Preview */
.size-preview-wrap {
    margin: 15px 0 0;
    text-align: center;
    width: 100%;
}

.size-preview-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(255, 107, 107, 0.1));
    border: 2px dashed rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 50px;
    min-height: 30px;
}

.size-preview-label {
    font-size: 0.8em;
    color: #88aacc;
    font-weight: 600;
    white-space: nowrap;
    padding: 5px;
}

.size-preview-info {
    margin: 8px 0 0;
    font-size: 0.85em;
    color: #88aacc;
}

/* Custom Size Inputs */
.custom-size-wrap {
    width: 100%;
    margin: 25px 0 0;
}

.custom-size-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    justify-content: center;
}

.custom-size-field {
    flex: 1;
    max-width: 120px;
}

.custom-size-field label {
    display: block;
    font-size: 0.85em;
    color: #88aacc;
    margin-bottom: 5px;
}

.custom-size-field input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f0f6fc;
    font-size: 1em;
    text-align: center;
}

.custom-size-field input:focus {
    outline: none;
    border-color: rgba(255, 165, 0, 0.5);
}

.size-separator {
    font-size: 1.5em;
    color: #88aacc;
    padding-bottom: 10px;
}

/* Reference Image Upload */
.reference-image-section {
    margin-bottom: 20px;
}

.reference-image-section > label {
    display: block;
    margin-bottom: 10px;
    color: #c8d4e0;
    font-weight: 500;
}

.upload-area {
    position: relative;
    border: 2px dashed rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 165, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: rgba(255, 165, 0, 0.5);
    background: rgba(255, 165, 0, 0.08);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #88aacc;
}

.upload-placeholder .upload-icon {
    font-size: 2.5em;
    opacity: 0.7;
}

.upload-placeholder .upload-hint {
    font-size: 0.8em;
    opacity: 0.7;
}

.upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
}

.remove-upload {
    position: absolute;
    top: -8px;
    right: calc(50% - 108px);
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.remove-upload:hover {
    background: #ff4757;
}

/* Upload Selector */
.uploads-selector {
    margin-top: 15px;
}

.uploads-label {
    font-size: 0.85em;
    color: #88aacc;
    margin-bottom: 10px;
}

.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
}

.upload-thumb-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.upload-thumb-item:hover {
    border-color: rgba(255, 165, 0, 0.5);
}

.upload-thumb-item.selected {
    border-color: #ffa500;
}

.upload-thumb-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.upload-thumb-item .selection-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 165, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.upload-thumb-item.selected .selection-overlay {
    opacity: 1;
}

.upload-thumb-item .checkmark {
    color: white;
    font-size: 1.5em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Banner Output */
.banner-output {
    border-radius: 12px;
    overflow: hidden;
}

.banner-output img {
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    display: block;
    border-radius: 12px;
}

.banner-text-wrap {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .upload-area {
        padding: 20px;
    }
    
    .uploads-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .custom-size-row {
        flex-wrap: wrap;
    }
    
    .custom-size-field {
        max-width: none;
    }
    
    .banner-item .creation-meta-info .meta-item {
        font-size: 0.8em;
        padding: 3px 8px;
    }
}

