:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --secondary-color: #10B981;
    --bg-color: #F3F4F6;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #111827;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

/* Navbar */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0 6rem;
    text-align: center;
    margin-bottom: -3rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Main Card */
.main-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-top: -3rem; /* Overlap hero */
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #E5E7EB;
    margin-bottom: 2rem;
}

.nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
    border-color: transparent;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
}

/* Forms */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid #D1D5DB;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #D1D5DB;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #F9FAFB;
    position: relative;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #EEF2FF;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #9CA3AF;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    border-color: #D1D5DB;
    color: #4B5563;
}

.btn-outline-secondary:hover {
    background-color: #F3F4F6;
    color: #1F2937;
    border-color: #9CA3AF;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: white;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    font-weight: 600;
    background-color: white;
    color: var(--text-color);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: #EEF2FF;
    box-shadow: none;
}

/* Footer */
.footer {
    background-color: #1F2937;
    color: #D1D5DB;
    padding: 3rem 0;
    margin-top: auto;
}

.footer a {
    color: #9CA3AF;
}

.footer a:hover {
    color: white;
}

/* Utilities */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #4F46E5, #9333EA);
}

/* Preview Area */
#preview-area {
    margin-top: 1.5rem;
    padding: 2rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: #FAFAFA;
    font-size: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-all;
}

/* Code Box */
textarea.code-box {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    background-color: #1F2937;
    color: #E5E7EB;
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 20;
}

.lang-switch .btn {
    border-radius: 20px;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}
