﻿.main-content {
    padding: 0 20px 80px 20px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 26px 0;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 6px;
    letter-spacing: -0.8px;
}

.page-header p {
    color: var(--text-tertiary);
    font-size: 16px;
}

.text-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tab-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-btn.active {
    background: var(--text-primary);
    color: white;
    border-color: transparent;
}

.tool-section {
    display: none;
    background: var(--card-bg);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.tool-section.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-text h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

.panel-text p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.panel-tag {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #4B5563;
    background: #F3F4F6;
    padding: 6px 10px;
    border-radius: 999px;
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.text-block label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.text-area {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    background: #F9FAFB;
    color: var(--text-primary);
    outline: none;
}

.text-area:focus {
    border-color: rgba(0, 122, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.action-btn.primary {
    background: var(--accent-blue);
    border-color: transparent;
    color: white;
}

.action-btn.ghost {
    background: #F3F4F6;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 8px 0 14px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.option-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #F8FAFC;
    border-radius: 10px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #E0F2FE;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-content h4 {
    margin-bottom: 4px;
}

.info-content p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.info-card {
    margin-top: 30px;
}

.notification-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #111827;
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: var(--transition-base);
    z-index: 9999;
}

.notification-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 0 12px 60px 12px;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .text-area {
        min-height: 180px;
    }
    .page-header h1 {
        font-size: 28px;
    }
    .text-tabs {
        gap: 8px;
    }
    .action-row {
        gap: 8px;
    }
}
