/* Standardized Component Styles */
/* Use these classes with UI utility functions for consistency */

/* CSS Variables — inherits palette from styles.css :root.
   Only component-specific tokens defined here. */
:root {
    /* Component Dimensions */
    --stat-bar-height: 40px;
    --stat-bar-radius: 20px;
    --task-padding: 1rem;
    --modal-max-width: 600px;
    --card-radius: 0.75rem;

    /* Gradients */
    --energy-gradient: linear-gradient(90deg, #ef4444, #f59e0b, #22c55e);
    --stress-gradient: linear-gradient(90deg, #22c55e, #f59e0b, #ef4444);
    --morale-gradient: linear-gradient(90deg, #991b1b, #ef4444, #f59e0b, #84cc16, #22c55e);
    --hours-gradient: linear-gradient(90deg, var(--aew-accent), #8b5cf6);

    /* Z-Index Layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-modal-overlay: 1000;
    --z-modal: 1001;
    --z-toast: 2000;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Creative Planning Modal Styles */
.creative-planning-modal {
    padding: 0;
    background: var(--aew-card);
    color: white;
    border: 2px solid var(--aew-gold);
}

.creative-planning .modal-header {
    background: linear-gradient(45deg, var(--aew-gold), #FFBB00);
    color: black;
    padding: 1rem 2rem;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.creative-planning .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.creative-planning .planning-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.creative-planning .unsaved-indicator {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: var(--aew-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.creative-planning .planning-tabs {
    display: flex;
    background: var(--aew-bg);
    border-bottom: 2px solid var(--aew-line);
    padding: 0;
}

.creative-planning .tab-btn {
    flex: 1;
    background: transparent;
    color: #ccc;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.creative-planning .tab-btn:hover {
    background: rgba(240, 165, 0, 0.1);
    color: white;
}

.creative-planning .tab-btn.active {
    color: var(--aew-gold);
    border-bottom-color: var(--aew-gold);
    background: rgba(240, 165, 0, 0.05);
}

.creative-planning .planning-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 2rem;
}

.creative-planning .section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--aew-line);
}

.creative-planning .section-header h3 {
    color: var(--aew-gold);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.creative-planning .section-header p {
    margin: 0;
    color: #ccc;
    font-size: 0.9rem;
}

/* Championship Plans */
.creative-planning .title-plan {
    background: var(--aew-bg);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.creative-planning .title-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--aew-line);
}

.creative-planning .title-header h4 {
    color: var(--aew-gold);
    margin: 0;
    font-size: 1.1rem;
}

.creative-planning .current-champion {
    color: #ccc;
    font-size: 0.9rem;
}

.creative-planning .plan-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.creative-planning .challenger-queue,
.creative-planning .defense-schedule {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: var(--card-radius);
}

.creative-planning .challenger-queue h5,
.creative-planning .defense-schedule h5 {
    color: var(--aew-blue);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.creative-planning .challenger-item,
.creative-planning .defense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--aew-card);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.creative-planning .challenger-controls {
    display: flex;
    gap: 0.25rem;
}

.creative-planning .challenger-controls button {
    background: var(--aew-line);
    border: none;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.creative-planning .challenger-controls button:hover {
    background: var(--aew-gold);
    color: black;
}

.creative-planning .challenger-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Storyline Plans */
.creative-planning .storylines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.creative-planning .storyline-card {
    background: var(--aew-bg);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
    padding: 1.5rem;
}

.creative-planning .storyline-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.creative-planning .storyline-title {
    flex: 1;
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
}

.creative-planning .storyline-title::placeholder {
    color: #666;
}

.creative-planning .remove-storyline {
    background: var(--aew-red);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creative-planning .participants-section {
    margin-bottom: 1rem;
}

.creative-planning .participant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.creative-planning .participant-chip {
    background: var(--aew-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.creative-planning .participant-chip button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.creative-planning .storyline-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.creative-planning .storyline-controls select {
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
}

.creative-planning .storyline-description {
    width: 100%;
    min-height: 80px;
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
}

.creative-planning .storyline-description::placeholder {
    color: #666;
}

/* Timeline View */
.creative-planning .timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.creative-planning .week-column {
    background: var(--aew-bg);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
    min-height: 200px;
}

.creative-planning .week-header {
    background: var(--aew-gold);
    color: black;
    padding: 0.75rem;
    font-weight: bold;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    text-align: center;
}

.creative-planning .week-events {
    padding: 1rem;
}

.creative-planning .timeline-event {
    background: var(--aew-card);
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    border-left: 3px solid var(--aew-blue);
}

.creative-planning .timeline-event.defense {
    border-left-color: var(--aew-gold);
}

.creative-planning .timeline-event.turn {
    border-left-color: var(--aew-red);
}

.creative-planning .timeline-event.debut {
    border-left-color: var(--aew-green);
}

/* Planning Actions */
.creative-planning .planning-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--aew-bg);
    border-top: 1px solid var(--aew-line);
    border-radius: 0 0 8px 8px;
}

.creative-planning .planning-actions button {
    background: var(--aew-gold);
    color: black;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--card-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.creative-planning .planning-actions button:hover {
    background: #FFBB00;
    transform: translateY(-1px);
}

.creative-planning .planning-actions button.disabled {
    background: var(--aew-line);
    color: #999;
    cursor: not-allowed;
}

.creative-planning .planning-actions button.disabled:hover {
    transform: none;
    background: var(--aew-line);
}

/* General Form Styles for Creative Planning */
.creative-planning input[type="text"],
.creative-planning input[type="number"],
.creative-planning select,
.creative-planning textarea {
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    color: white;
    border-radius: 4px;
}

.creative-planning input[type="text"]:focus,
.creative-planning input[type="number"]:focus,
.creative-planning select:focus,
.creative-planning textarea:focus {
    outline: none;
    border-color: var(--aew-gold);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
}

.creative-planning input::placeholder,
.creative-planning textarea::placeholder {
    color: #666;
}

/* Button Styles */
.creative-planning button {
    background: var(--aew-blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.creative-planning button:hover {
    background: var(--aew-accent);
}

/* Producer Assignment Component Styles */
.producer-assignment {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
}

.producer-label {
    display: block;
    color: var(--aew-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.producer-selector-wrapper {
    margin-bottom: 1rem;
}

.producer-select {
    width: 100%;
    background: var(--aew-card);
    color: white;
    border: 1px solid var(--aew-line);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.producer-select:focus {
    outline: none;
    border-color: var(--aew-gold);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
}

.producer-select option {
    background: var(--aew-card);
    color: white;
    padding: 0.5rem;
}

.producer-recommendation {
    background: var(--aew-gold);
    color: black;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.producer-details {
    background: var(--aew-bg);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--aew-line);
}

.producer-info {
    font-size: 0.9rem;
    line-height: 1.4;
}

.producer-info > div {
    margin-bottom: 0.5rem;
}

.producer-specialty,
.producer-expertise,
.producer-styles {
    color: #ccc;
}

.producer-trust {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.trust-indicator {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.trust-excellent {
    background: var(--aew-green);
    color: black;
}

.trust-good {
    background: var(--aew-blue);
    color: white;
}

.trust-average {
    background: var(--aew-gold);
    color: black;
}

.trust-low {
    background: var(--aew-red);
    color: white;
}

.availability-note {
    background: rgba(255, 165, 0, 0.2);
    color: orange;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.no-producer-selected,
.no-producers {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* Producer Workload Component */
.producer-workload {
    background: var(--aew-card);
    padding: 1.5rem;
    border-radius: var(--card-radius);
    margin: 1rem 0;
}

.producer-workload h4 {
    color: var(--aew-gold);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.producer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.producer-card {
    background: var(--aew-bg);
    padding: 1rem;
    border-radius: var(--card-radius);
    border: 1px solid var(--aew-line);
}

.producer-card.unavailable {
    opacity: 0.6;
    border-color: var(--aew-red);
}

.producer-name {
    font-weight: bold;
    color: var(--aew-blue);
    margin-bottom: 0.5rem;
}

.producer-load {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.load-bar {
    background: var(--aew-line);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.load-fill {
    background: linear-gradient(90deg, var(--aew-green), var(--aew-gold), var(--aew-red));
    height: 100%;
    transition: width 0.3s ease;
}

/* Producer Stats Component */
.producer-stats {
    background: var(--aew-card);
    padding: 1.5rem;
    border-radius: var(--card-radius);
    margin: 1rem 0;
}

.producer-stats h4 {
    color: var(--aew-gold);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.stats-table {
    display: grid;
    gap: 0.5rem;
}

.stats-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--aew-line);
    border-radius: 4px;
    font-weight: bold;
    color: var(--aew-gold);
    font-size: 0.9rem;
}

.stats-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--aew-bg);
    border-radius: 4px;
    align-items: center;
    font-size: 0.9rem;
}

.stats-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.stats-row .producer-name {
    font-weight: 600;
    color: white;
}

.stats-row .producer-specialty {
    color: #ccc;
}

.bonus-level {
    color: var(--aew-green);
    font-weight: 600;
}

.match-count {
    color: var(--aew-blue);
    font-weight: 600;
    text-align: center;
}

/* Integration with booking forms */
.match-details .producer-assignment {
    border-top: 1px solid var(--aew-line);
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Winner Selection Component Styles */
.winner-selection {
    margin-top: 0.5rem;
}

.winner-selection select {
    width: 100%;
    background: var(--aew-card);
    color: white;
    border: 1px solid var(--aew-line);
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.winner-selection select:focus {
    outline: none;
    border-color: var(--aew-gold);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.2);
}

.winner-simulation {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    font-style: italic;
}

/* Radio button styling for winner mode selection */
input[type="radio"] {
    accent-color: var(--aew-gold);
    margin-right: 0.5rem;
}

/* Enhanced booking section styling */
.booking-section {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
}

.booking-section label {
    display: block;
    color: var(--aew-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-section .selection-mode {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.booking-section .selection-mode label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
    cursor: pointer;
    color: #ccc;
}

.booking-section .selection-mode input[type="radio"]:checked + label,
.booking-section .selection-mode label:has(input[type="radio"]:checked) {
    color: var(--aew-gold);
    font-weight: 600;
}

/* Stat Bar Component */
.stat-bar-wrapper {
    margin-bottom: 1rem;
}

.stat-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-bar-label {
    font-weight: 500;
    color: #fff;
}

.stat-bar-value {
    color: var(--aew-gold);
    font-weight: bold;
    font-size: 0.9rem;
}

.stat-bar-container {
    width: 100%;
    height: var(--stat-bar-height);
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--stat-bar-radius);
    padding: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: calc(var(--stat-bar-radius) - 4px);
    transition: width var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Modal Component */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal-overlay);
}

.modal-container {
    position: relative;
    background: var(--aew-card);
    border: 2px solid var(--aew-gold);
    border-radius: var(--card-radius);
    max-width: var(--modal-max-width);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: var(--z-modal);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--aew-line);
}

.modal-title {
    margin: 0;
    color: var(--aew-gold);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--aew-gold);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--aew-line);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Wrestler Card Component */
.wrestler-card {
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
    padding: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.wrestler-card:hover {
    border-color: var(--aew-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 165, 0, 0.2);
}

.wrestler-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wrestler-name {
    font-weight: bold;
    color: #fff;
}

.wrestler-rating {
    background: var(--aew-gold);
    color: black;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.wrestler-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    font-size: 0.875rem;
}

.wrestler-champion {
    margin-top: 0.5rem;
    color: var(--aew-gold);
    font-weight: bold;
    text-align: center;
}

/* Task Item Component */
.task-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    padding: var(--task-padding);
    margin-bottom: 0.75rem;
    transition: all var(--transition-normal);
}

.task-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.task-mandatory {
    border-left: 4px solid var(--aew-red);
    background: rgba(239, 68, 68, 0.05);
}

.task-important {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.task-optional {
    border-left: 4px solid var(--aew-green);
    background: rgba(34, 197, 94, 0.05);
}

.task-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.task-urgency {
    font-size: 1.25rem;
}

.task-title {
    flex: 1;
    font-weight: 600;
    color: #fff;
}

.task-time {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #aaa;
}

.task-description {
    color: #aaa;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

/* Match Card Component */
.match-card {
    background: var(--aew-card);
    border: 1px solid var(--aew-line);
    border-radius: var(--card-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.match-card.has-producer {
    border-left: 3px solid var(--aew-blue);
}

.match-card.manual-winner {
    border-right: 3px solid var(--aew-gold);
}

.match-participants {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.match-winner {
    color: var(--aew-green);
    font-weight: bold;
}

.match-vs {
    color: #666;
    font-size: 0.875rem;
}

.match-loser {
    color: #aaa;
}

.match-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.match-rating {
    color: var(--aew-gold);
}

.match-title {
    color: var(--aew-gold);
    font-weight: bold;
}

/* Toast Notifications — stacking, slide-in/out, 5SB palette */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 420px;
}

#toast-container > * {
    pointer-events: auto;
}

.toast {
    background: var(--aew-card);
    border: 2px solid;
    border-radius: var(--card-radius);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 420px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    transform: translateX(110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-show {
    transform: translateX(0);
    opacity: 1;
}

.toast-dismiss {
    transform: translateX(110%);
    opacity: 0;
}

.toast-success {
    border-color: var(--aew-gold);
    background: linear-gradient(135deg, var(--aew-card), rgba(240, 165, 0, 0.08));
}

.toast-error {
    border-color: var(--aew-red);
    background: linear-gradient(135deg, var(--aew-card), rgba(239, 68, 68, 0.08));
}

.toast-warning {
    border-color: #F59E0B;
    background: linear-gradient(135deg, var(--aew-card), rgba(245, 158, 11, 0.08));
}

.toast-info {
    border-color: var(--aew-accent);
    background: linear-gradient(135deg, var(--aew-card), rgba(56, 189, 248, 0.08));
}

.toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--aew-text);
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(240, 165, 0, 0.2);
    border-top-color: var(--aew-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    margin-top: 1rem;
    color: var(--aew-gold);
}

/* Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset var(--transition-normal);
}

.progress-ring-text {
    transform: rotate(90deg);
    fill: var(--aew-gold);
    font-size: 14px;
    font-weight: bold;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    #toast-container {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        max-width: none;
    }

    .task-actions {
        flex-direction: column;
    }

    .task-actions button {
        width: 100%;
    }
}

/* ============================================================ */
/* === AAA JUICE PASS — component micro-interactions ========== */
/* Supplementary. Enhances existing component classes with      */
/* tactile press feedback, gold focus rings, and reward cues.   */
/* ============================================================ */

/* --- Interactive cards: clickable affordance + press feel --- */
.wrestler-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wrestler-card:active {
    transform: translateY(-1px) scale(0.99);
}

.wrestler-card:focus-visible {
    outline: none;
    border-color: var(--aew-gold);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.4), 0 4px 12px rgba(240, 165, 0, 0.2);
}

/* Task items already slide on hover; add a hairline gold edge + press. */
.task-item {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.task-item:hover {
    border-color: rgba(240, 165, 0, 0.25);
}

.task-item:focus-within {
    box-shadow: 0 0 0 1px rgba(240, 165, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* New task entrance — opt-in pop for freshly queued items. */
.task-item.task-new {
    animation: task-pop-in 0.42s cubic-bezier(.2, 1.2, .4, 1) both;
}

@keyframes task-pop-in {
    0% { opacity: 0; transform: translateX(12px) scale(0.97); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* --- Form controls: consistent gold focus glow (matches 5SB) --- */
input[type="text"]:focus-visible,
input[type="number"]:focus-visible,
input[type="search"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--aew-gold);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.22);
}

/* --- Modal entrance: subtle scale/fade so it feels deliberate --- */
.modal-container {
    animation: modal-in 0.22s ease-out both;
}

@keyframes modal-in {
    0% { opacity: 0; transform: translateY(8px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal close button: tactile rotate + gold focus. */
.modal-close {
    transition: color var(--transition-fast), transform 0.12s ease;
    border-radius: 6px;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-close:focus-visible {
    outline: none;
    color: var(--aew-gold);
    box-shadow: 0 0 0 2px rgba(240, 165, 0, 0.35);
}

/* --- Wrestler rating chip: crisp gold, glow on elite marks --- */
.wrestler-rating {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
}

.wrestler-rating.elite,
.match-rating.elite {
    box-shadow: 0 0 12px rgba(240, 165, 0, 0.5);
    text-shadow: 0 0 8px rgba(240, 165, 0, 0.4);
}

/* --- Stat bar fill: glossy sheen + smooth animated growth --- */
.stat-bar-fill {
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

/* --- Toast entrance gets a touch of bounce on the slide-in --- */
.toast {
    transition: transform 0.32s cubic-bezier(.2, 1.2, .35, 1), opacity 0.3s ease;
}

/* Success toast pulses its gold border once to feel rewarding. */
.toast-success.toast-show {
    animation: toast-reward 0.7s ease-out;
}

@keyframes toast-reward {
    0% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(240, 165, 0, 0); }
    40% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 22px 2px rgba(240, 165, 0, 0.45); }
    100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 0 rgba(240, 165, 0, 0); }
}

/* --- Generic empty list/panel styling so blanks look intentional --- */
.no-data,
.empty-list {
    text-align: center;
    color: var(--aew-text-muted);
    font-size: 0.9rem;
    padding: 1.5rem 1rem;
    border: 1px dashed var(--aew-line);
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.015);
}

/* --- Trust/badge chips: a hint of depth --- */
.trust-indicator {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* === prefers-reduced-motion (component layer) === */
@media (prefers-reduced-motion: reduce) {
    .task-item.task-new,
    .modal-container,
    .toast-success.toast-show {
        animation: none !important;
    }

    .wrestler-card,
    .wrestler-card:hover,
    .wrestler-card:active,
    .task-item,
    .task-item:hover,
    .modal-close,
    .modal-close:hover,
    .toast {
        transition: none;
        transform: none;
    }

    .stat-bar-fill {
        transition: none;
    }
}