/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}

.hidden {
    display: none !important;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-brand .brand-link:hover {
    color: #4b5563;
}

.brand-icon {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.desktop-menu {
    display: none;
    gap: 2rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: #111827;
}

/* Font Awesome Icon Sizes */
.brand-icon {
    font-size: 32px;
}

.menu-icon,
.close-icon {
    font-size: 24px;
}

.feature-icon {
    font-size: 48px;
}

.btn-icon {
    font-size: 20px;
}

.nav-link.active {
    color: #111827;
    border-bottom-color: #111827;
}

.mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.mobile-menu {
    border-top: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.mobile-menu-content {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background-color: #f9fafb;
    color: #111827;
}

.mobile-nav-link.active {
    background-color: #f3f4f6;
    color: #111827;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* Page Wrapper */
.page-wrapper {
    min-height: calc(100vh - 64px);
    background: linear-gradient(to bottom, #f9fafb, #ffffff);
    padding: 4rem 0;
}

.page-gray {
    background-color: #f9fafb;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #111827;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #1f2937;
}

.btn-primary:disabled {
    background-color: #d1d5db;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #ffffff;
    color: #111827;
    border: 2px solid #111827;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-icon {
    margin-left: 0.5rem;
    width: 20px;
    height: 20px;
}

.btn-icon-left {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

.btn-full {
    width: 100%;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: #111827;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #4b5563;
}

/* How It Works */
.how-it-works {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step-card {
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #111827;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #4b5563;
}

/* Key Features */
.key-features {
    background-color: #111827;
    border-radius: 1rem;
    padding: 3rem 2rem;
    color: #ffffff;
    margin-bottom: 5rem;
}

.key-features-content {
    max-width: 48rem;
    margin: 0 auto;
}

.section-title-white {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-title-white {
        font-size: 2.25rem;
    }
}

.features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 1.125rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 5rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
}

/* Card */
.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

/* Converter Grid */
.converter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .converter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.upload-area:hover {
    border-color: #9ca3af;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: #9ca3af;
}

.upload-text {
    color: #374151;
    font-weight: 500;
}

.upload-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preview-image {
    max-height: 192px;
    margin: 0 auto;
}

.file-name {
    font-size: 0.875rem;
    color: #4b5563;
}

/* QRIS String Display */
.qris-string-display {
    position: relative;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 0.75rem;
    padding-right: 3rem;
}

.qris-string-code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #e2e8f0;
    word-break: break-all;
    line-height: 1.6;
}

/* Syntax highlighting for QRIS */
.qris-tag {
    color: #60a5fa;
    font-weight: 600;
}

.qris-length {
    color: #a78bfa;
}

.qris-value {
    color: #34d399;
}

.copy-qris-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.5rem;
    background-color: #334155;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-qris-btn:hover {
    background-color: #475569;
    border-color: #64748b;
}

.copy-qris-btn:active {
    background-color: #1e293b;
}

.copy-qris-btn svg {
    color: #94a3b8;
}

.qris-string-hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.75rem;
}

/* Result States */
.result-placeholder,
.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 256px;
}

.result-icon,
.loading-icon {
    width: 64px;
    height: 64px;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.loading-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.result-text,
.loading-text {
    color: #4b5563;
    text-align: center;
}

/* Success State */
.success-state {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}

.alert-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.alert-success .alert-icon {
    color: #059669;
}

.alert-error .alert-icon {
    color: #dc2626;
}

.alert-text {
    font-weight: 500;
}

.alert-success .alert-text {
    color: #065f46;
}

.alert-error .alert-text {
    color: #991b1b;
}

.alert-subtext {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert-error .alert-subtext {
    color: #b91c1c;
}

/* QR Result */
.qr-result {
    display: flex;
    justify-content: center;
}

.result-qr-image {
    max-width: 100%;
}

/* Result Info */
.result-info {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.info-item {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* Docs Page */
.container-docs {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.docs-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.docs-section {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.docs-section-dark {
    background-color: #111827;
    color: #ffffff;
}

.docs-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-section-title-white {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-icon {
    width: 24px;
    height: 24px;
}

.docs-text {
    color: #374151;
    margin-bottom: 1rem;
}

.docs-text-white {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.docs-text-muted {
    color: #9ca3af;
    font-size: 0.875rem;
}

.info-box {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.info-code {
    font-size: 0.875rem;
    color: #111827;
    font-family: 'Courier New', monospace;
}

.docs-subsection-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 1.5rem 0 0.75rem;
}

/* Endpoint */
.endpoint-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.method-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.method-post {
    background-color: #d1fae5;
    color: #065f46;
}

.endpoint-path {
    font-size: 0.875rem;
    color: #111827;
    font-family: 'Courier New', monospace;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
}

.docs-table thead {
    background-color: #f9fafb;
}

.docs-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}

.docs-table td code {
    font-family: 'Courier New', monospace;
    color: #111827;
}

/* Code Block */
.code-block {
    background-color: #111827;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #f3f4f6;
    line-height: 1.5;
}

/* Code Example */
.code-example {
    margin: 1.5rem 0;
}

.code-example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.code-example-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #374151;
    background: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.copy-icon {
    width: 16px;
    height: 16px;
}

.copy-btn.copied .copy-text {
    color: #059669;
}