/* Brixzly SVG Converter Frontend Styles */

.brixzly-svg-converter-frontend {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.converter-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid #e1e5e9;
}

.converter-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.converter-description {
    margin: 0 0 30px 0;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.file-upload-area:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-upload-area.dragover {
    border-color: #007cba;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.7;
}

.upload-main-text {
    font-size: 18px;
    font-weight: 500;
    color: #495057;
    margin: 0 0 8px 0;
}

.upload-sub-text {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Progress Container */
.progress-container {
    margin: 20px 0;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #005a87);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Result Container */
.result-container {
    margin: 20px 0;
}

.result-success,
.result-error {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.result-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-icon,
.error-icon {
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.success-message,
.error-message {
    flex: 1;
}

.success-message h4,
.error-message h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.success-message p,
.error-message p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Download Section */
.download-section,
.retry-section {
    margin-top: 15px;
    text-align: center;
}

.download-button,
.retry-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button {
    background: #28a745;
    color: white;
}

.download-button:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.retry-button {
    background: #dc3545;
    color: white;
}

.retry-button:hover {
    background: #c82333;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brixzly-svg-converter-frontend {
        margin: 10px;
        max-width: none;
    }
    
    .converter-container {
        padding: 20px;
    }
    
    .converter-title {
        font-size: 20px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-main-text {
        font-size: 16px;
    }
    
    .result-success,
    .result-error {
        flex-direction: column;
        text-align: center;
    }
    
    .success-icon,
    .error-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Animation for file upload */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.file-upload-area.uploading {
    animation: pulse 1.5s infinite;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Membership Notice Styles */
.membership-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: white;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.notice-content h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.notice-content p {
    margin: 0 0 25px 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.notice-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.login-button,
.membership-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

.membership-button {
    background: #ff6b6b;
    color: white;
    border-color: #ff5252;
}

.membership-button:hover {
    background: #ff5252;
    border-color: #ff1744;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

@media (max-width: 480px) {
    .notice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .login-button,
    .membership-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Bulk Conversion Styles */
.failed-files {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.failed-files strong {
    color: #dc3545;
    display: block;
    margin-bottom: 8px;
}

.failed-files small {
    color: #6c757d;
    line-height: 1.4;
}

.download-button {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.download-button:active {
    transform: translateY(0);
}

/* File count indicator */
.file-count-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.file-upload-area.has-files {
    border-color: #007cba;
    background: #f0f8ff;
}

.file-upload-area.has-files .upload-text {
    opacity: 0.7;
}
