/* ==========================================================================
   Upload V2 — Eigene Motive
   ========================================================================== */

/* --- Drop Zone --- */
.uv2-dropzone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    position: relative;
}
.uv2-dropzone:hover {
    border-color: #00453b;
    background: #f0f7f5;
}
.uv2-dropzone--active {
    border-color: #00453b !important;
    background: #e8f5e9 !important;
}
.uv2-dropzone__icon {
    width: 64px;
    height: 64px;
    color: #aaa;
    margin-bottom: 12px;
}
.uv2-dropzone--active .uv2-dropzone__icon {
    color: #00453b;
}
.uv2-dropzone__text {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 12px;
}
.uv2-dropzone__hint {
    font-size: 0.85rem;
    color: #999;
}

/* --- Editor Area --- */
.uv2-editor {
    margin-top: 20px;
}
.uv2-cropper-wrap {
    max-height: 450px;
    overflow: hidden;
    background: #1a1a2e;
    border-radius: 8px;
}
.uv2-cropper-wrap img {
    display: block;
    max-width: 100%;
}
.uv2-toolbar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.uv2-toolbar .btn {
    min-width: 44px;
}

/* --- Progress --- */
.uv2-progress-wrap {
    padding: 30px 20px;
    text-align: center;
}
.uv2-progress-wrap .progress {
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
}
.uv2-progress-wrap .progress-bar {
    background: linear-gradient(90deg, #00453b, #00796b);
    transition: width 0.3s ease;
    font-size: 0.85rem;
    line-height: 25px;
    font-weight: 600;
    color: #fff;
}

/* --- Gallery Cards --- */
.uv2-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}
.uv2-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px);
}
.uv2-card-img-wrap {
    background: #f0f0f0;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.uv2-card-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}
.uv2-card .card-body {
    border-top: 1px solid #eee;
}
.uv2-card .card-text {
    max-width: 100%;
}

/* Thumbnail loader */
.uv2-thumb-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    width: 100%;
}
.uv2-thumb-loader .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Gallery item fade-in animation */
.uv2-gallery-item {
    animation: uv2FadeIn 0.4s ease;
}
@keyframes uv2FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Upload Card --- */
.uv2-upload-card .card-body {
    padding: 30px;
}

/* --- Empty State --- */
#uv2-empty {
    padding: 40px 20px;
}
/* SVG opacity handled inline */

/* --- Messages --- */
.uv2-msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 0.95rem;
}
.uv2-msg--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.uv2-msg--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .uv2-dropzone {
        min-height: 160px;
        padding: 25px 15px;
    }
    .uv2-dropzone__icon {
        width: 48px;
        height: 48px;
    }
    .uv2-dropzone__text {
        font-size: 0.95rem;
    }
    .uv2-upload-card .card-body {
        padding: 20px 15px;
    }
    .uv2-cropper-wrap {
        max-height: 300px;
    }
}
@media (max-width: 575px) {
    .uv2-toolbar .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}
