/* MaxUpload Premium Styles */

.maxu82up_uploader-card {
    --maxu82up-border-color: #007bff;
    --maxu82up-bg-color: #ffffff;
    --maxu82up-progress-bg: #007bff;
    --maxu82up-hover-bg: #f8f9fa;
    --maxu82up-text-color: #212529;

    background-color: var(--maxu82up-bg-color) !important;
    color: var(--maxu82up-text-color) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.maxu82up_dropzone {
    border: 2px dashed var(--maxu82up-border-color) !important;
    background-color: transparent !important;
    border-radius: 16px !important;
    min-height: 250px;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.maxu82up_dropzone:hover {
    background-color: var(--maxu82up-hover-bg) !important;
    border-style: solid !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.maxu82up_upload-icon i {
    color: var(--maxu82up-border-color);
    transition: transform 0.2s ease;
}

.maxu82up_dropzone:hover .maxu82up_upload-icon i {
    transform: translateY(-5px) scale(1.05);
}

.maxu82up-container .maxu82up_btn-primary {
    background-color: var(--maxu82up-border-color) !important;
    border-color: var(--maxu82up-border-color) !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.maxu82up-container .maxu82up_btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.maxu82up_drag-overlay {
    background: rgba(0, 123, 255, 0.06) !important;
    backdrop-filter: blur(2px);
    border-radius: 14px;
    z-index: 10;
}

.maxu82up_progress-bar {
    background-color: var(--maxu82up-progress-bg) !important;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.animate-scale {
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-shake {
    animation: shake 0.4s ease;
}

/* Color Customizer Preview Box */
.form-control-color {
    width: 60px !important;
    height: 40px !important;
    padding: 3px !important;
    border-radius: 6px !important;
    cursor: pointer;
}

/* Accordion Buttons */
.maxu82up-container .maxu82up_accordion-button {
    font-weight: 500;
    color: #007bff;
}

.maxu82up-container .maxu82up_accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0056b3;
}

/* Settings Form elements styling */
.maxu82up-container form .regular-text {
    width: 100%;
    max-width: 650px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    font-size: 1rem;
}

.maxu82up-container form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.maxu82up-container form .description {
    font-size: 0.9rem;
    color: #6c757d;
}

.maxu82up-container form p #submit {
    position: relative;
    left: 0;
}

.maxu82up-container .text-danger {
    font-weight: 500;
    font-size: 1rem;
}

.maxu82up-container .max-upload-size {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 15px;
}

.maxu82up-container .max-upload-size a {
    color: #007bff;
    text-decoration: none;
}

.maxu82up-container .max-upload-size a:hover {
    text-decoration: underline;
}

/* Segmented progress utility styling */
.progress-bar {
    transition: width 0.4s ease;
}

.maxu82up-files-table th {
    font-weight: 700;
    color: #495057;
}

@media (max-width: 768px) {
    .maxu82up_dropzone {
        padding: 20px !important;
        min-height: 200px;
    }

    .maxu82up-container form .regular-text {
        max-width: 100%;
    }

    .maxu82up-donut-chart {
        width: 180px !important;
        height: 180px !important;
    }
    .maxu82up-donut-center {
        width: 110px !important;
        height: 110px !important;
    }
    .maxu82up-donut-center .fs-3 {
        font-size: 1rem !important;
    }
}

/* ===== Donut Chart Disk Analyzer ===== */
.maxu82up-disk-analyzer {
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.maxu82up-donut-wrapper {
    padding: 10px;
}

.maxu82up-donut-chart {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.maxu82up-donut-chart:hover {
    transform: scale(1.03);
}

.maxu82up-donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Stat Cards */
.maxu82up-stat-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.maxu82up-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Legend Items */
.maxu82up-legend-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.maxu82up-legend-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.maxu82up-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}