/* VibeCoding Uploader System - Consolidated */

/* Main uploader container */
.uploader-tabs-container {
    background-color: #202020;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid #2c2c2c;
    margin-bottom: 20px;
    min-width: 400px;
    max-width: 600px;
    width: 600px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Tab navigation */
.uploader-tab-navigation {
    display: flex;
    background-color: #202020;
    border-bottom: none;
    flex: 0 0 auto;
}

/* Tab button styling */
.uploader-tab-button {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    color: #cccccc;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    min-width: 0;
}

.uploader-tab-button:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.uploader-tab-button.active {
    color: #ffffff;
    background-color: #1a1a1a;
}
.uploader-tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #3498db;
}

/* Tab content */
.uploader-tab-content {
    padding: 0;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}

.uploader-tab-pane {
    display: none;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.uploader-tab-pane.active {
    display: block;
}

/* Upload containers */
.image-upload-container,
.background-upload-container {
    background: transparent;
}

/* Upload area styling - consolidated best approach */
.upload-area {
    border: 2px dashed #444;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.2s;
    background-color: #222;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

/* Upload button styling */
.button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    margin: 10px 0;
}
.button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.button:active {
    transform: translateY(0);
}

/* Preview containers */
.preview-container,
.background-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    pointer-events: auto;
}

/* Image preview styling - enhanced */
.image-preview,
.background-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: #1a1a1a;
    transition: all 0.2s;
    pointer-events: auto;
}

.image-preview:hover,
.background-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.image-preview img,
.background-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Remove buttons with enhanced visibility */
.remove-preview,
.remove-background {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}
.image-preview:hover .remove-preview,
.background-preview:hover .remove-background {
    opacity: 1;
}

.remove-preview:hover,
.remove-background:hover {
    background-color: #e74c3c;
}

/* Color swatch - enhanced visibility */
.color-swatch {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    border: 3px solid white !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8) !important;
    z-index: 100 !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Color indicator container */
.color-indicator-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
}

/* Color and background labels */
.color-label {
    font-size: 10px;
    color: white;
    padding: 4px;
    padding-left: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.background-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3px 6px;
    background-color: rgba(0, 0, 0, 0.7);
    font-size: 10px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
/* Background settings */
.background-settings {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.setting {
    margin-bottom: 15px;
}

.setting label {
    display: block;
    margin-bottom: 6px;
    color: #e0e0e0;
    font-weight: 500;
}

.setting-description {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

/* Range inputs */
input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

/* File types text */
.file-types {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .uploader-tabs-container {
        margin-left: 0;
        width: 100%;
        max-width: 500px;
        min-width: 350px;
    }
    
    .uploader-tab-button {
        font-size: 15px;
        padding: 14px 12px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Medium screen adjustments - where text starts getting cramped */
@media (max-width: 600px) {
    .uploader-tab-button {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 6px;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 768px) {
    .uploader-tabs-container {
        width: 100%;
        max-width: 400px;
        min-width: 300px;
    }
    
    .uploader-tab-button {
        font-size: 14px;
        padding: 12px 8px;
        font-weight: 600;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .uploader-tabs-container {
        width: 100%;
        max-width: 350px;
        min-width: 280px;
    }
    
    .uploader-tab-button {
        font-size: 13px;
        padding: 10px 6px;
        font-weight: 600;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* Extra small mobile adjustments */
@media (max-width: 360px) {
    .uploader-tabs-container {
        width: 100%;
        max-width: 320px;
        min-width: 280px;
    }
    
    .uploader-tab-button {
        font-size: 12px;
        padding: 8px 10px;
        font-weight: 600;
        line-height: 1.2;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}