﻿.sa-uploader {
    width: 100%;
}

.sa-upload-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 2px dashed #cbd5e1;
    border-radius: 24px;
    background: #ffffff;
    cursor: pointer;
    transition: .25s;
    overflow: hidden;
}

    .sa-upload-box:hover {
        border-color: #6366f1;
        background: #f8fafc;
    }

    .sa-upload-box input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.sa-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

.sa-upload-icon {
    font-size: 42px;
}

.sa-upload-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.sa-upload-subtitle {
    font-size: 13px;
    color: #64748b;
}

.sa-upload-preview {
    position: relative;
    margin-bottom: 16px;
}

.sa-upload-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.sa-upload-file {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border-radius: 24px;
    background: #f8fafc;
    font-size: 72px;
}

.sa-upload-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

/* =====================================================
   AVATAR
   ===================================================== */

/* =====================================================
   AVATAR
   ===================================================== */

.sa-upload-avatar {
    position: relative;
    display: flex;
    justify-content: center;
}

.sa-avatar-upload {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    display: block;
}

    .sa-avatar-upload:hover {
        transform: scale(1.03);
    }

    .sa-avatar-upload input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 5;
    }

.sa-avatar-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #ffffff;
    box-shadow: 0 12px 30px rgba(15,23,42,.15);
}

.sa-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #eef2ff, #f8fafc);
    border: 3px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-avatar-placeholder-icon {
    font-size: 54px;
}

.sa-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15,23,42,.45);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .25s;
    font-size: 28px;
    backdrop-filter: blur(2px);
}

.sa-avatar-upload:hover .sa-avatar-overlay {
    opacity: 1;
}

.sa-avatar-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    cursor: pointer;
    z-index: 10;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(239,68,68,.25);
}

/* =====================================================
   SQUARE
   ===================================================== */

.sa-upload-square .sa-upload-box {
    aspect-ratio: 1;
}

/* =====================================================
   BANNER
   ===================================================== */

.sa-upload-banner .sa-upload-box {
    min-height: 240px;
}

/* =====================================================
   CARD
   ===================================================== */

.sa-upload-card .sa-upload-box {
    min-height: 180px;
}
