:root {
    --surface: #ffffff;
    --surface-muted: #f4f6fb;
    --border: #e3e8f2;
    --text-main: #1c2333;
    --text-muted: #5f6b85;
    --primary: #f39c12;
    --primary-dark: #e67e22;
    --accent: #36cfc9;
    --success: #2ecc71;
    --error: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.08);
    --gradient: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* Converter Interface */
.converter-interface {
    margin-bottom: 3rem;
}

.converter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 32px;
    transition: background 0.3s ease, border 0.3s ease;
}

/* Columns Wrapper */
.columns-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 32px;
}

/* Card Sections */
.card-section {
    margin-bottom: 0;
}

.columns-wrapper .card-section:not(:last-child)::after {
    display: none;
}

.card-section:not(.input-section):not(.output-section) {
    margin-top: 1rem;
    padding-top: 1rem;
}

.card-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-title-group {
    flex: 1;
    min-width: 200px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-footer {
    padding-top: 16px;
}

/* Editor Wrapper */
.editor-wrapper {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-muted);
    min-height: 300px;
}

.code-input,
.code-output {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: none;
    background: transparent;
    
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-main);
    resize: vertical;
    outline: none;
}

.code-input:focus {
    background: var(--surface);
}

.code-output {
    color: var(--text-muted);
    cursor: default;
}

.code-input::placeholder,
.code-output::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Action Section */
.action-section {
    padding: 24px 0;
    margin: 24px 0;
}

.action-section::before,
.action-section::after {
    display: none;
}

.action-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.action-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.action-info i {
    font-size: 14px;
    opacity: 0.7;
}

.input-stats,
.output-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat-item i {
    font-size: 12px;
    opacity: 0.7;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    background: var(--gradient);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(243, 156, 18, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-action:hover {
    background: rgba(243, 156, 18, 0.08);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action i {
    font-size: 14px;
}

.btn-action.copied {
    background: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.btn-action .btn-text {
    display: inline;
}

/* Stats Section */
.stats-section {
    margin: 24px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface-muted);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

/* Content Section */
.content-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
    margin-top: 32px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-block h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-block p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.content-block ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.content-block li {
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}

.content-block li strong {
    color: var(--text-main);
}

/* Code Examples */
.code-example {
    margin: 24px 0;
    padding: 24px;
    background: var(--surface-muted);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.code-example h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-main);
}

.code-example pre {
    margin: 12px 0;
    padding: 16px;
    background: var(--surface);
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.code-example code {
    
    font-size: 14px;
    color: var(--text-main);
}

/* Alert Boxes */
.alert-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin: 24px 0;
    border-left: 4px solid;
}

.alert-box.warning {
    background: rgba(243, 156, 18, 0.05);
    border-left-color: var(--warning);
}

.alert-box.info {
    background: rgba(52, 152, 219, 0.05);
    border-left-color: var(--info);
}

.alert-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.alert-box.warning .alert-icon {
    color: var(--warning);
}

.alert-box.info .alert-icon {
    color: var(--info);
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

.alert-box.warning .alert-content h4 {
    color: var(--warning);
}

.alert-box.info .alert-content h4 {
    color: var(--info);
}

.alert-content ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.alert-content li {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .converter-card {
        padding: 24px;
    }

    .columns-wrapper {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .columns-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .columns-wrapper .card-section:not(:last-child)::after {
        display: block;
        content: '';
        height: 1px;
        background: var(--border);
        margin-top: 24px;
    }

    .card-section:not(.input-section):not(.output-section) {
        margin-top: 24px;
        padding-top: 24px;
    }
}

@media (max-width: 767px) {
    .converter-card {
        padding: 20px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
    }

    .btn-action {
        flex: 1;
        min-width: 120px;
    }

    .editor-wrapper {
        min-height: 250px;
    }

    .code-input,
    .code-output {
        min-height: 250px;
        font-size: 13px;
        padding: 16px;
    }

    .action-content {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }

    .action-info {
        text-align: center;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .input-stats,
    .output-stats {
        justify-content: center;
    }

    .columns-wrapper {
        margin-bottom: 24px;
    }
}

/* Scrollbar Styling */
.code-input::-webkit-scrollbar,
.code-output::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-input::-webkit-scrollbar-track,
.code-output::-webkit-scrollbar-track {
    background: var(--surface-muted);
    border-radius: 4px;
}

.code-input::-webkit-scrollbar-thumb,
.code-output::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.code-input::-webkit-scrollbar-thumb:hover,
.code-output::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus States */
.code-input:focus {
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.btn-primary:focus,
.btn-action:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel {
    animation: fadeIn 0.3s ease-out;
}

