/* SwiftConvert - Clean White & Black Theme */

:root {
    /* Colors - Simple White & Black */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --bg-card: #ffffff;

    --text-primary: #000000;
    --text-secondary: #495057;
    --text-muted: #868e96;

    --accent-primary: #000000;
    --accent-secondary: #343a40;

    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    --info: #007bff;

    --border-color: #dee2e6;
    --border-hover: #adb5bd;

    /* Sizing */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-brand svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-cta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-hover);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 14px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hero Section */
.hero {
    padding: 48px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.badge-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.badge-info {
    background: #cce5ff;
    color: #004085;
    border-color: #b8daff;
}

/* Upload Zone */
.upload-section {
    padding: 32px 0;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--text-muted);
}

.upload-zone h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.upload-zone p {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-browse {
    color: var(--accent-primary);
    font-weight: 500;
    cursor: pointer;
}

.upload-limit {
    margin-top: 16px;
    padding: 8px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius-sm);
    font-size: 12px;
    display: inline-block;
}

/* Options */
.options-section {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    align-items: end;
}

@media (max-width: 640px) {
    .options-section {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-primary);
    cursor: pointer;
    font-family: inherit;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Toggle */
.toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border-color);
    border-radius: 22px;
    transition: 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--accent-primary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(18px);
}

/* Files List */
.files-section {
    padding: 16px 0;
    display: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 14px;
    font-weight: 600;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    word-break: break-all;
}

.file-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.file-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.file-status.pending {
    background: #fff3cd;
    color: #856404;
}

.file-status.success {
    background: #d4edda;
    color: #155724;
}

.file-status.error {
    background: #f8d7da;
    color: #721c24;
}

.file-status.premium {
    background: #cce5ff;
    color: #004085;
}

.file-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.file-remove:hover {
    background: #f8d7da;
    color: #721c24;
}

/* Progress */
.progress-section {
    padding: 16px 0;
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 0%;
    transition: width 0.3s;
}

.progress-status {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Results */
.results-section {
    padding: 16px 0;
    display: none;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.result-download {
    padding: 6px 12px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
}

/* Pricing Banner */
.pricing-banner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.pricing-banner h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.pricing-banner p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.plan {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    min-width: 140px;
}

.plan.premium {
    border-color: var(--accent-primary);
}

.plan-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
}

.plan-limit {
    font-size: 11px;
    color: var(--text-muted);
}

/* Payment Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    display: none;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.modal p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-price {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.modal-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

/* Features Grid */
.features-section {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.features-section h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-card h4 {
    font-size: 13px;
    margin-bottom: 4px;
}

.feature-card p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Formats Section */
.formats-section {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

.formats-section h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.format-card {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.format-card .icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.format-card h4 {
    font-size: 12px;
    margin-bottom: 4px;
}

.format-card p {
    font-size: 10px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-top: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 6px;
}

.footer-section a {
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

/* Page Layout */
.page {
    padding: 32px 0;
}

.page h1 {
    font-size: 24px;
    margin-bottom: 16px;
}

.page h2 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.page p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.page ul,
.page ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Content Sections */
.content-section {
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.content-section:last-child {
    border-bottom: none;
}

.content-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.content-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.faq-question {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 16px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    background: var(--bg-secondary);
}

/* Ads */
.ad-unit {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 16px;
    text-align: center;
    margin: 16px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}