/* Universal Upload Styles - Based on extractimg design v2 */

.upload-container {
    max-width: 500px;
    margin: 25px auto 10px auto;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-container {
    max-width: 500px;
    margin: 10px auto;
    padding: 12px 15px;
    background: #f1f3f5;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    background: #e9ecef;
    border-color: #0056b3;
}

.upload-area.dragover {
    background: #d4edff;
    border-color: #0056b3;
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 10px;
}

.upload-area h5 {
    margin-bottom: 5px;
    color: #333;
}

.upload-area .text-muted {
    font-size: 14px;
}

.file-input {
    display: none;
}

/* File Info */
.file-info {
    margin-top: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 5px;
    display: none;
}

.file-info.show {
    display: block;
}

.file-count {
    font-weight: 600;
    color: #333;
}

/* Info Box */
.info-text {
    margin-top: 15px;
    padding: 12px;
    background: #f1f3f5;
    border-left: 4px solid #6c757d;
    border-radius: 4px;
}

.info-text strong {
    color: #495057;
}

.info-text ul {
    margin-bottom: 0;
    margin-top: 8px;
    padding-left: 20px;
}

.info-text li {
    margin-bottom: 4px;
    color: #6c757d;
}

/* Upload Button */
.btn-upload {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-upload:hover:not(:disabled) {
    background-color: #004494;
    border-color: #004494;
}

.btn-upload:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error Message */
.error-message {
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Fullscreen Drop Overlay */
.drop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: #007bff;
    pointer-events: none;
    z-index: 9999;
}

.drop-overlay.show {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-container {
        margin: 30px 15px;
        padding: 20px 15px;
        max-width: 100%;
    }

    .upload-container h2 {
        font-size: 1.5rem;
    }

    .upload-area {
        padding: 30px 15px;
    }

    .upload-area h5 {
        font-size: 1rem;
    }

    .upload-area .text-muted {
        font-size: 13px;
    }

    .upload-icon {
        font-size: 40px;
    }

    .btn-upload {
        padding: 14px 12px;
        font-size: 15px;
    }

    .info-text {
        padding: 12px;
        font-size: 14px;
    }

    .info-text ul {
        padding-left: 18px;
    }

    .info-text li {
        font-size: 13px;
    }

    .drop-overlay {
        font-size: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .upload-container {
        margin: 20px 10px;
        padding: 15px 10px;
    }

    .upload-container h2 {
        font-size: 1.25rem;
    }

    .upload-area {
        padding: 25px 10px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .upload-area h5 {
        font-size: 0.95rem;
    }

    .btn-upload {
        font-size: 14px;
        padding: 12px 10px;
    }

    .info-text {
        padding: 10px;
        font-size: 13px;
    }

    .info-text strong {
        font-size: 14px;
    }

    .drop-overlay {
        font-size: 1.2rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .upload-container {
        margin: 20px auto;
        max-width: 90%;
    }

    .upload-area {
        padding: 20px 15px;
    }
}
