/* File Converter Plugin Frontend Styles */

.file-converter-form {
    max-width: 500px;
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

.file-converter-form:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-converter-form.drag-over {
    border-color: #007cba;
    background-color: #e7f3ff;
    transform: scale(1.02);
}

.file-converter-form .form-group {
    margin-bottom: 20px;
}

.file-converter-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.file-converter-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.file-converter-form .form-control:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.file-converter-form .file-input {
    padding: 16px;
    border: 2px dashed #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    cursor: pointer;
    text-align: center;
    position: relative;
}

.file-converter-form .file-input:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-converter-form .form-text {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* Progress Styles */
.file-converter-form .progress-container {
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.file-converter-form .progress {
    width: 100%;
    height: 24px;
    background-color: #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.file-converter-form .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #005a87);
    transition: width 0.6s ease;
    border-radius: 12px;
    position: relative;
}

.file-converter-form .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

.file-converter-form .progress-text {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* Alert Styles */
.file-converter-form .alert {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 6px;
    border-left: 4px solid;
    opacity: 0;
    animation: slideIn 0.4s ease forwards;
}

.file-converter-form .alert h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.file-converter-form .alert p {
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.file-converter-form .alert-success {
    background-color: #d1f2eb;
    border-left-color: #00d084;
    color: #00784a;
}

.file-converter-form .alert-danger {
    background-color: #fdeaea;
    border-left-color: #e74c3c;
    color: #c0392b;
}

/* Button Styles */
.file-converter-form .btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

.file-converter-form .btn-primary {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.file-converter-form .btn-primary:hover {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
    color: white;
    text-decoration: none;
}

.file-converter-form .convert-button {
    width: 100%;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.3);
}

.file-converter-form .convert-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #005a87, #004066);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.4);
}

.file-converter-form .convert-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

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

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-converter-form {
        margin: 15px 0;
        padding: 15px;
    }
    
    .file-converter-form .form-control {
        padding: 10px 12px;
    }
    
    .file-converter-form .convert-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .file-converter-form {
        background: #2c2c2c;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .file-converter-form .form-control {
        background: #3c3c3c;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .file-converter-form .form-label {
        color: #e0e0e0;
    }
    
    .file-converter-form .form-text {
        color: #aaa;
    }
    
    .file-converter-form .file-input {
        background: #3c3c3c;
        border-color: #555;
    }
}

/* Accessibility Improvements */
.file-converter-form .form-control:focus,
.file-converter-form .convert-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.file-converter-form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

