.mode-section {
    margin-bottom: 15px;
}

.mode-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.mode-tabs {
    display: flex;
    background: #f8fafc;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 12px;
}

.mode-tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.mode-tab.active {
    background: #2563eb;
    color: white;
}

.mode-tab:hover:not(.active) {
    background: #e2e8f0;
}

.mode-options {
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.mode-options.hidden {
    display: none;
}

.conversion-examples {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.conversion-item {
    flex: 1;
    min-width: 180px;
}

.conversion-item .radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
    font-size: 13px;
}

.conversion-item .radio-item input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.example-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-family: 'Times New Roman', serif;
    font-size: 13px;
}

.example-label {
    color: #64748b;
    font-size: 12px;
}

.example-input {
    font-weight: 600;
    color: #334155;
}

.example-arrow {
    color: #2563eb;
    font-size: 14px;
}

.example-output {
    font-weight: 600;
    color: #2563eb;
    font-size: 14px;
}

.info-text {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.info-text code {
    background: #e2e8f0;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    color: #2563eb;
}

.keyword {
    font-weight: normal;
}

.input-section {
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    min-height: 72px;
    max-height: 100px;
    resize: vertical;
}

.text-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.text-input::placeholder {
    color: #94a3b8;
}

.button-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 13px;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.secondary-btn:hover {
    background: #2563eb;
    color: white;
}

.success-btn {
    background: #10b981;
    color: white;
}

.success-btn:hover {
    background: #059669;
}

.style-section {
    margin-top: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.style-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.style-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.style-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.style-item label {
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
    font-size: 13px;
}

.style-item select,
.style-item input[type="range"],
.style-item input[type="color"] {
    cursor: pointer;
}

.style-item select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.style-item input[type="range"] {
    width: 100px;
}

.style-item input[type="color"] {
    width: 32px;
    height: 28px;
    border: none;
    border-radius: 4px;
}

.style-item span {
    font-size: 12px;
    color: #64748b;
    min-width: 40px;
}

.output-section {
    margin-top: 12px;
}

.output-section h2 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.result-display {
    min-height: 60px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
    font-size: 18px;
    line-height: 1.6;
    transition: all 0.3s;
}

.result-display.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
}

.output-actions {
    margin-top: 10px;
}

.output-actions .btn {
    gap: 6px;
}

.quick-formulas-section {
    margin-bottom: 15px;
    margin-top: 20px;
}

.quick-formulas-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.formulas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.formula-btn {
    padding: 6px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    color: #334155;
}

.formula-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.examples-section {
    margin-bottom: 15px;
}

.examples-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.example-card {
    background: #f8fafc;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.example-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.example-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.example-row {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    color: #334155;
    font-weight: 500;
}

.field-examples-section {
    margin-bottom: 15px;
}

.field-examples-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 10px;
}

.field-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.field-tab {
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    transition: all 0.3s;
}

.field-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.field-tab:hover:not(.active) {
    background: #e2e8f0;
}

.field-content {
    background: #f8fafc;
    border-radius: 6px;
    padding: 12px;
}

.field-content.hidden {
    display: none;
}

.field-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.field-examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-example {
    padding: 8px 12px;
    background: white;
    border-radius: 4px;
    font-family: 'Times New Roman', serif;
    font-size: 13px;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 10px 20px;
    background: #1e293b;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.related-tools {
    background: #f8f9fa;
    padding: 30px 0;
    margin-top: 40px;
}

.related-tools h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.related-tool-item {
    background: white;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.related-tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    color: #2563eb;
}

.related-tool-item i {
    font-size: 20px;
    color: #2563eb;
}

.related-tool-item span {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 768px) {
    .conversion-examples {
        flex-direction: column;
        gap: 10px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .style-options {
        flex-direction: column;
        gap: 10px;
    }

    .style-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .formulas-grid {
        justify-content: center;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .result-display {
        font-size: 15px;
        min-height: 50px;
    }

    .field-tabs {
        justify-content: flex-start;
    }

    .field-tab {
        font-size: 11px;
        padding: 5px 10px;
    }

    .toast {
        right: 10px;
        left: 10px;
        text-align: center;
    }

    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}