/* charts.css - MindTest CPNS Simulation Custom Charts Styles */

/* ==========================================================================
   1. PIE CHART
   ========================================================================== */
.css-pie-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 1rem auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 4px solid white;
    /* Usage: inline style `background: conic-gradient(red 0 30%, blue 30% 100%);` */
}

/* Label for pie chart legend */
.pie-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.pie-legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

/* ==========================================================================
   2. BAR CHART
   ========================================================================== */
.css-bar-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 180px;
    padding: 1rem 0;
    margin: 1rem 0;
    border-bottom: 2px solid #cbd5e1;
    border-left: 2px solid #cbd5e1;
}

.css-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100%;
}

.css-bar-fill {
    width: 100%;
    max-width: 48px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    /* Height and background color defined inline */
}

.css-bar-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

.css-bar-value {
    position: absolute;
    top: -1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

/* ==========================================================================
   3. VENN DIAGRAM
   ========================================================================== */
.venn-container {
    position: relative;
    width: 240px;
    height: 160px;
    margin: 2rem auto;
}

.venn-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    mix-blend-mode: multiply;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.venn-circle.left {
    left: 20px;
    background-color: rgba(59, 130, 246, 0.8); /* Blue */
}

.venn-circle.right {
    right: 20px;
    background-color: rgba(239, 68, 68, 0.8); /* Red */
}

/* Intersection text positioned manually */
.venn-intersection-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: white;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    font-size: 1.25rem;
}

.venn-label {
    position: absolute;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.venn-label.left {
    top: -25px;
    left: 40px;
}

.venn-label.right {
    top: -25px;
    right: 40px;
}

/* ==========================================================================
   4. TIMELINE
   ========================================================================== */
.timeline-container {
    position: relative;
    border-left: 2px solid #e2e8f0;
    margin: 1rem 0 1rem 1rem;
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-node {
    position: absolute;
    left: -1.9rem; /* Align with border-left */
    top: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #4f46e5;
    border: 2px solid white;
}

.timeline-content {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}
