/**
 * QuantumLayers Upload Page Styles
 */

.ql-upload-page {
    min-height: 100vh;
    padding: 40px 20px;
}

.ql-upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.ql-upload-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.ql-upload-header h1 {
    font-size: 36px;
    margin: 0 0 10px 0;
}

.ql-upload-header p {
    font-size: 18px;
    opacity: 0.9;
}

.ql-upload-box {
    background: white;
    border-radius: 2px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.ql-form-group {
    margin-bottom: 25px;
}

.ql-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1d2327;
}

.ql-form-group input[type="text"],
.ql-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 2px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
    box-sizing: border-box;
}

.ql-form-group input:focus,
.ql-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ql-form-group small {
    display: block;
    margin-top: 6px;
    color: #333;
    font-size: 13px;
}

.ql-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ql-radio {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.ql-radio:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.ql-radio input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ql-radio input[type="radio"]:checked ~ span {
    color: #333;
    font-weight: 600;
}

.ql-radio span {
    flex: 1;
}

.ql-file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 2px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.ql-file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.ql-file-upload-area.drag-over {
    border-color: #667eea;
    background: #e7edff;
    transform: scale(1.02);
}

.ql-file-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.ql-file-upload-content p {
    margin: 10px 0;
    color: #333;
}

.ql-file-upload-content strong {
    color: #667eea;
}

.ql-file-info {
    margin-top: 15px;
    padding: 15px;
    background: #e7f3ff;
    border-radius: 2px;
    border-left: 4px solid #2271b1;
    display: none;
}

.ql-file-info.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ql-file-info strong {
    color: #1d2327;
}

.ql-upload-progress {
    margin: 20px 0;
    display: none;
}

.ql-upload-progress.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ql-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f1;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ql-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.ql-progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.ql-upload-info {
    background: white;
    border-radius: 2px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ql-upload-info h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 18px;
}

.ql-upload-info ul,
.ql-upload-info ol {
    margin: 0 0 25px 0;
    padding-left: 25px;
}

.ql-upload-info li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.ql-upload-info ul li::marker {
    color: #667eea;
}

.ql-upload-info ol li::marker {
    color: #667eea;
    font-weight: 600;
}

/* Success message */
.ql-upload-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    display: none;
}

.ql-upload-success.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.ql-upload-success strong {
    display: block;
    margin-bottom: 5px;
}

/* Error message */
.ql-upload-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    display: none;
}

.ql-upload-error.show {
    display: block;
    animation: slideDown 0.3s ease;
}

/* Loading spinner */
.ql-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .ql-upload-page {
        padding: 20px 15px;
    }

    .ql-upload-box {
        padding: 25px 20px;
    }
    
    .ql-upload-header h1 {
        font-size: 28px;
    }

    .ql-upload-header p {
        font-size: 16px;
    }

    .ql-file-upload-area {
        padding: 30px 20px;
    }

    .ql-upload-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .ql-upload-header h1 {
        font-size: 24px;
    }

    .ql-form-group input[type="text"],
    .ql-form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

