:root {
    --primary: #2563eb;
    --secondary: #0f172a;
    --accent: #38bdf8;
    --success: #10b981;
    --error: #ef4444;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

.aimc-converter-wrapper {
    font-family: 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.aimc-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px;
    border-radius: 24px;
}

.aimc-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-align: center;
}

.aimc-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0 auto;
    text-align: center;
}

/* How It Works */
.aimc-how-it-works {
    margin-bottom: 60px;
}

.aimc-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.aimc-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.aimc-step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aimc-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.aimc-step-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.aimc-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.aimc-step p {
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Card */
.aimc-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Upload Area */
.aimc-upload-area {
    border: 3px dashed var(--accent);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
    position: relative;
    user-select: none;
}

/* 
.aimc-upload-area * {
    pointer-events: none;
} */

.aimc-upload-area:hover {
    border-color: var(--primary);
    background: white;
    transform: scale(1.02);
}

.aimc-upload-area.dragging {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.aimc-upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.aimc-upload-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.aimc-upload-content p {
    color: var(--text-light);
    margin: 0 0 16px 0;
    text-align: center;
}

.aimc-upload-formats {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* File Preview */
.aimc-file-preview {
    text-align: center;
}

.aimc-file-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aimc-file-info p {
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: center;
}

/* Buttons */
.aimc-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    width: fit-contents;
}

.aimc-btn-primary {
    font-weight: 600;
    background-color: transparent;
    background-image: linear-gradient(180deg, #7c6ce4 0, #624de3 100%) !important;
    border: 1px solid #0000001A;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .1), 0 -1px 0 1px rgba(0, 0, 0, .25) inset, 0 2px 0 0 rgba(255, 255, 255, .2) inset;
    display: block;
    cursor: pointer;
}

.aimc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}


.aimc-btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.aimc-btn-ghost:hover {
    background: var(--text-light);
    color: white;
}

/* Processing Animation */
.aimc-processing-animation {
    text-align: center;
    padding: 60px 40px;
}

.aimc-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(37, 99, 235, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

.aimc-processing-animation h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.aimc-processing-animation p {
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Preview Section */
.aimc-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.aimc-preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

.aimc-preview-actions {
    display: flex;
    gap: 12px;
}

.aimc-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.aimc-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.aimc-table th {
    background: var(--secondary);
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

.aimc-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
}

.aimc-table tbody tr:hover {
    background: var(--bg-light);
}

/* Error State */
.aimc-error-card {
    text-align: center;
    padding: 60px 40px;
}

.aimc-error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.aimc-error-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--error);
}

.aimc-error-card p {
    color: var(--text-light);
    margin: 0 0 24px 0;
    text-align: center;
}

/* Features */
.aimc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.aimc-feature-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.aimc-feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.aimc-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}

.aimc-feature-card p {
    color: var(--text-light);
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .aimc-hero-title {
        font-size: 2rem;
    }

    .aimc-hero-subtitle {
        font-size: 1rem;
    }

    .aimc-card {
        padding: 24px;
    }

    .aimc-upload-area {
        padding: 40px 20px;
    }

    .aimc-preview-header {
        flex-direction: column;
        align-items: stretch;
    }

    .aimc-preview-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .aimc-converter-wrapper {
        padding: 0;
    }

    .aimc-hero {
        padding: 26px 20px;
        margin-bottom: 32px;
    }

    .aimc-hero-subtitle {
        font-size: 12px;
    }

    .aimc-hero-title {
        font-size: 28px;
    }

    .aimc-section-title {
        font-size: 28px;
        margin: 0 0 15px;
    }

    .aimc-steps {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(auto, 1fr));
        gap: 30px;
    }

    .aimc-features {
        grid-template-columns: repeat(auto-fit, minmax(auto, 1fr));
    }
}