/* Background styling for the upload page */
body {
    background-color: #0b0d0f; 
}

/* Main form container */
.upload-form-container {
    background-color: var(--bg-0, #13151a); 
    color: var(--text-primary, #e0e6f0); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Interactive Dropzone */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropzone:hover, 
.dropzone.is-dragover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}

.dropzone-icon {
    width: 56px;
    height: 56px;
    color: #f97316;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Dropzone File Preview */
.dropzone-file-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.dropzone-file-preview .file-icon {
    color: #f97316;
}

.dropzone-file-preview .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Adjust textarea to match filter-input style */
textarea.filter-input {
    min-height: 120px;
    resize: vertical;
}

/* --- Modern Upload Notification Cards --- */
.upload-alert-card {
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 1px !important;
    border-style: solid !important;
    margin-bottom: 1.75rem !important;
}

.upload-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
}

/* Success Card */
.upload-alert-card.upload-alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(6, 78, 59, 0.3) 100%) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(16, 185, 129, 0.12);
}

.upload-alert-card.upload-alert-success::before {
    background: linear-gradient(180deg, #34d399 0%, #059669 100%);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

/* Error Card */
.upload-alert-card.upload-alert-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(153, 27, 27, 0.3) 100%) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(239, 68, 68, 0.12);
}

.upload-alert-card.upload-alert-error::before {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.6);
}

/* Icon Box */
.upload-alert-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upload-alert-icon-box.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.upload-alert-icon-box.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #f87171;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.upload-alert-icon-box svg {
    width: 22px;
    height: 22px;
}

/* Typography */
.upload-alert-title {
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.upload-alert-card.upload-alert-success .upload-alert-title {
    color: #ecfdf5;
}

.upload-alert-card.upload-alert-error .upload-alert-title {
    color: #fef2f2;
}

.upload-alert-subtitle {
    font-size: 0.875rem;
    line-height: 1.4;
}

.upload-alert-card.upload-alert-success .upload-alert-subtitle {
    color: #a7f3d0;
    opacity: 0.85;
}

.upload-alert-card.upload-alert-error .upload-alert-subtitle {
    color: #fca5a5;
    opacity: 0.85;
}

.upload-alert-list {
    color: #fca5a5;
    font-size: 0.88rem;
    padding-left: 1.2rem;
}

.upload-alert-list li {
    margin-bottom: 0.25rem;
}

/* Action CTA Button */
.btn-replay-action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-replay-action:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-replay-action:hover svg {
    transform: translateX(4px);
}

.btn-replay-action svg {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
}

.btn-replay-action:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Close Button */
.upload-alert-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.upload-alert-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

