/* Go Converter Styles */
.go-converter-wrapper {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.converter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Styles */
.input-section,
.output-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.input-section:hover,
.output-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-section .section-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.header-content {
    flex: 1;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.section-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

/* Editor Box */
.editor-box {
    position: relative;
}

.code-input {
    width: 100%;
    min-height: 300px;
    padding: 1.25rem;
    border: none;
    font-size: 14px;
    line-height: 1.6;
    color: #2d3748;
    background: #f8f9fa;
    resize: vertical;
    outline: none;
    transition: background-color 0.2s ease;
}

.code-input:focus {
    background: #ffffff;
}

.code-input::placeholder {
    color: #a0aec0;
}

.code-input[readonly] {
    background: #f7fafc;
    cursor: default;
}

.editor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8125rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e0;
    display: inline-block;
}

.status-indicator.active {
    background: #48bb78;
    animation: pulse 2s infinite;
}

.status-indicator.error {
    background: #f56565;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    color: #718096;
}

/* Controls Section */
.controls-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin: 0;
}

.control-input,
.control-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.control-input:focus,
.control-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: #4a5568;
    user-select: none;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-item span {
    flex: 1;
}

/* Convert Button */
.convert-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

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

.btn-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.btn-text {
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .converter-container {
        gap: 1rem;
    }

    .section-header {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.125rem;
    }

    .title-icon {
        font-size: 1.25rem;
    }

    .section-description {
        font-size: 0.8125rem;
    }

    .code-input {
        min-height: 250px;
        padding: 1rem;
        font-size: 13px;
    }

    .controls-section {
        padding: 1.25rem;
    }

    .controls-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .convert-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .icon-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .go-converter-wrapper {
        margin-top: 1.5rem;
    }

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

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .code-input {
        min-height: 200px;
        padding: 0.875rem;
        font-size: 12px;
    }

    .controls-section {
        padding: 1rem;
    }

    .convert-btn {
        padding: 0.75rem 1rem;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .input-section,
    .output-section,
    .controls-section {
        background: #1a202c;
    }

    .code-input {
        background: #2d3748;
        color: #e2e8f0;
    }

    .code-input:focus {
        background: #2d3748;
    }

    .code-input[readonly] {
        background: #1a202c;
    }

    .editor-status {
        background: #2d3748;
        border-top-color: #4a5568;
    }

    .status-text {
        color: #a0aec0;
    }

    .control-input,
    .control-select {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .control-label {
        color: #cbd5e0;
    }

    .checkbox-item {
        color: #cbd5e0;
    }
}
