.tool-container {
    max-width: 760px;
    margin: 0 auto 30px auto;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.hero-card {
    padding-top: 22px;
    padding-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 14px;
    color: #718096;
    margin-top: 0;
    margin-bottom: 14px;
}

/* Input Area */
.input-textarea, .output-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 14px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
}

.input-textarea {
    min-height: 110px;
}

.input-textarea:focus {
    border-color: #167ac6;
    box-shadow: 0 0 0 3px rgba(22, 122, 198, 0.15);
}

.output-textarea {
    min-height: 85px;
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1a202c;
    font-weight: 500;
}

.output-textarea:focus {
    border-color: #137b75;
    background: #ffffff;
}

/* Tool Controls Bar */
.tool-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tool-stats {
    font-size: 13px;
    color: #718096;
}

.tool-stats strong {
    color: #2d3748;
}

.btn-group {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #167ac6 0%, #137b75 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(22, 122, 198, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(22, 122, 198, 0.35);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #edf2f7;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
}

.btn-copy {
    background: #137b75;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-copy:hover {
    background: #0f635e;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: #27ae60 !important;
}

.btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Global status toast / message */
.copy-status {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #d4edda;
    color: #155724;
    font-weight: 600;
    font-size: 14px;
    display: none;
    text-align: center;
    animation: fadeIn 0.2s ease;
}

.copy-status.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Output Cards Grid */
.output-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.output-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.output-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.output-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.output-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e2e8f0;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-popular {
    background: #feebc8;
    color: #c05621;
}

/* Article Styling (consistent with site design) */
.seo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.seo-table th, .seo-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    text-align: left;
}

.seo-table th {
    background: #f7fafc;
    font-weight: 700;
    color: #2d3748;
}

.seo-table tr:nth-child(even) {
    background: #f8fafc;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.platform-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.platform-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    color: #2d3748;
}

.platform-card p {
    margin: 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.faq-item {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.faq-item h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 6px;
    color: #2d3748;
}

.faq-item p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 600px) {
    .tool-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .tool-stats {
        text-align: center;
    }
    .btn-group {
        justify-content: center;
    }
}
