:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.upload-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h2 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.drop-area {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin-bottom: 1.5rem;
    position: relative;
}

.drop-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.drop-area.highlight {
    border-color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.05);
}

.drop-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.drop-area .drag-text {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.drop-area .support-text {
    color: #6c757d;
    font-size: 0.9rem;
}

#fileInput {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Selected file display */
.file-selected {
    display: flex;
    align-items: center;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(67, 97, 238, 0.2);
}

.file-selected i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.file-info {
    flex-grow: 1;
}

.file-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-size {
    font-size: 0.85rem;
    color: #6c757d;
}

.remove-file {
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
}

/* Progress bar */
.progress-container {
    margin: 2rem 0;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    align-items: center;
}

.progress-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 60px;
}

.progress-stats {
    display: flex;
    gap: 1.5rem;
}

.progress-stat {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.progress-stat i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.progress-stat span {
    font-weight: 600;
    color: var(--dark-color);
    margin-left: 0.3rem;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(67, 97, 238, 0.1);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 5px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

/* Buttons */
.btn-upload {
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Preview */
#preview {
    max-width: 100%;
    max-height: 200px;
    margin: 1rem auto;
    display: none;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Error message */
.error-message {
    color: var(--danger-color);
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* Social share */
.social-share {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.social-share h5 {
    text-align: center;
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp {
    background-color: #25D366;
}

.twitter {
    background-color: #1DA1F2;
}

.telegram {
    background-color: #0088CC;
}

.facebook {
    background-color: #1877F2;
}

.email {
    background-color: #D44638;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upload-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .drop-area {
        padding: 1.5rem 1rem;
    }

    .progress-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}
