/* ToolsHub Interactive Tools Enhanced CSS */

/* Quick Action Pre-sets Base Component */
.qa-btn-component {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    font-size: 0.825rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    user-select: none;
    margin-right: 4px;
    margin-bottom: 4px;
}
.qa-btn-component:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.qa-btn-component:active {
    transform: translateY(0);
}

/* Specific Intents */
.qa-primary { color: #2563eb; border-color: #2563eb; }
.qa-primary:hover { background-color: #2563eb; color: #fff; }

.qa-success { color: #10b981; border-color: #10b981; }
.qa-success:hover { background-color: #10b981; color: #fff; }

.qa-danger { color: #ef4444; border-color: #ef4444; }
.qa-danger:hover { background-color: #ef4444; color: #fff; }

.qa-warning { color: #f59e0b; border-color: #f59e0b; }
.qa-warning:hover { background-color: #f59e0b; color: #fff; }

.qa-info { color: #0ea5e9; border-color: #0ea5e9; }
.qa-info:hover { background-color: #0ea5e9; color: #fff; }

.qa-dark { color: #475569; border-color: #475569; }
.qa-dark:hover { background-color: #475569; color: #fff; }

/* Enhanced Graphic Elements */
.enhanced-progress-bar {
    display: flex;
    height: 16px;
    overflow: hidden;
    background-color: #f1f5f9;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.enhanced-progress-segment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width .6s ease;
}
.status-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-optimal { background-color: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.badge-warning { background-color: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.badge-critical { background-color: #fee2e2; color: #991b1b; border: 1px solid #ef4444; }
.badge-info { background-color: #e0f2fe; color: #075985; border: 1px solid #0ea5e9; }

/* ══════════════════════════════════════════════════════════════════
   GOLD STANDARD INTERACTIVE TOOL ARCHITECTURE (Batch 2+)
   ══════════════════════════════════════════════════════════════════ */

.tool-card-stacked {
    border: 1px solid #edf2f7;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    background: #fff;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header-v2 {
    padding: 1.25rem 1.5rem;
    background: #fcfcfd;
    border-bottom: 1px solid #f1f5f9;
}

.card-body-v2 {
    padding: 1.5rem;
}

.icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.tool-textarea {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    background: #f9fafb;
    transition: all 0.2s;
    resize: vertical;
}

.tool-textarea:focus {
    background: #fff;
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.stat-badge {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-badge:hover {
    transform: translateY(-2px);
    border-color: #e2e8f0;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
}

.btn-light-v2 {
    background: #f1f5f9;
    color: #475569;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-light-v2:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-primary-v2 {
    background: #4f46e5;
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-primary-v2:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    color: white;
}
