/* --- Interactive Card Styles --- */
.interactive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-hover-content {
    animation: fadeIn 0.3s ease;
}

/* --- Action Button Styles --- */
.action-btn {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
}

.action-btn:active {
    transform: scale(0.98);
}

/* --- Bar Chart Styles --- */
.chart-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    background: #f5f5f7;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.chart-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bar-row {
    display: flex;
    align-items: center;
    height: 30px;
}

.bar-label {
    width: 120px;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
    padding-right: 15px;
}

.bar-track {
    flex: 1;
    background: #f0f0f0;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--accent-color);
    width: 0; /* Animated via JS */
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.bar-fill.best {
    background: #34c759; /* Green for best */
}

/* --- Flowchart Styles --- */
.flowchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.flow-row {
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
}

.flow-node {
    background: white;
    border: 2px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    min-width: 150px;
    text-align: center;
}

.flow-node:hover, .flow-node.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

.flow-node::after {
    content: '↓';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-size: 20px;
}

.flow-row:last-child .flow-node::after {
    display: none;
}

.flow-description {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    min-height: 100px;
    margin-top: 20px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s;
}

.flow-description h4 {
    margin: 0 0 10px 0;
    color: var(--accent-color);
}

.flow-description p {
    margin: 0;
    font-size: 14px;
    color: #555;
}