/* styles.css -- Custom styles for UIEnv Simulator */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2d2f52;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d3f68;
}

/* Action log entries */
.log-entry {
    padding: 4px 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}
.log-entry:hover {
    background-color: rgba(99, 102, 241, 0.05);
}
.log-entry.log-action   { color: #818cf8; }
.log-entry.log-reward    { color: #34d399; }
.log-entry.log-negative  { color: #f87171; }
.log-entry.log-system    { color: #9d9fb8; }
.log-entry.log-outcome   { color: #fbbf24; }

/* Fade-in animation for new log entries */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.log-entry-new {
    animation: fadeSlideIn 0.25s ease-out;
}

/* Step circles */
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid #2d2f52;
    color: #73759a;
    background: #1e2040;
}
.step-circle.active {
    border-color: #6366f1;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}
.step-connector {
    flex: 1;
    height: 2px;
    background: #2d2f52;
    max-width: 40px;
    transition: background 0.4s;
}
.step-connector.active {
    background: #6366f1;
}

/* Form field placeholder */
.sim-input {
    background: #1e2040;
    border: 1px solid #2d2f52;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #73759a;
    transition: all 0.3s ease;
}
.sim-input.highlight {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* CTA button pulse on change */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25); }
    50%      { box-shadow: 0 4px 30px rgba(99, 102, 241, 0.5); }
}
.cta-pulse {
    animation: ctaPulse 0.6s ease;
}

/* Outcome badge colors */
.outcome-complete  { color: #34d399; }
.outcome-drop      { color: #f87171; }
.outcome-distrust  { color: #fbbf24; }
.outcome-continue  { color: #818cf8; }

/* Leaderboard row highlight */
.lb-row-1 { background: rgba(99, 102, 241, 0.08); }
.lb-row-1 td:first-child { color: #818cf8; font-weight: 700; }

/* Running animation on buttons */
@keyframes btnPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}
.btn-running {
    animation: btnPulse 0.8s ease infinite;
    pointer-events: none;
}

/* Flash effect for metric updates */
@keyframes flashGreen {
    from { background-color: rgba(52, 211, 153, 0.15); }
    to   { background-color: transparent; }
}
@keyframes flashRed {
    from { background-color: rgba(248, 113, 113, 0.15); }
    to   { background-color: transparent; }
}
.flash-green { animation: flashGreen 0.5s ease; }
.flash-red   { animation: flashRed   0.5s ease; }
