/**
 * Trans Saijaan — UI enhancements (toast, skeleton, cards, onboarding)
 */
#appToastHost {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}
.app-toast {
    pointer-events: auto;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: appToastIn 0.25s ease;
}
.app-toast.success { border-color: rgba(52, 211, 153, 0.5); color: #6ee7b7; }
.app-toast.warning { border-color: rgba(251, 191, 36, 0.5); color: #fcd34d; }
.app-toast.danger { border-color: rgba(251, 113, 133, 0.5); color: #fda4af; }
.app-toast.info { border-color: rgba(6, 182, 212, 0.5); color: #67e8f9; }
@keyframes appToastIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.ui-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: uiShimmer 1.2s infinite;
    border-radius: 8px;
    min-height: 0.85rem;
}
.ui-skeleton.lg { min-height: 2.5rem; border-radius: 12px; }
@keyframes uiShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pe-card {
    background: var(--drv-surface, rgba(15, 23, 42, 0.72));
    border: 1px solid var(--drv-border, rgba(148, 163, 184, 0.12));
    border-radius: 14px;
    padding: 0.95rem 1rem;
}
.pe-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.65rem;
}
.pe-card-title i { color: var(--accent-cyan, #06b6d4); margin-right: 0.35rem; }

.nearest-bus-card {
    border-left: 3px solid var(--accent-cyan, #06b6d4);
    background: linear-gradient(135deg, rgba(6,182,212,0.08), transparent);
}
.nearest-bus-eta {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-cyan, #06b6d4);
}

.first-ride-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.first-ride-step {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.78rem;
}
.first-ride-step .num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(6,182,212,0.15);
    color: #06b6d4;
    font-weight: 800;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.survey-stars {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
}
.survey-stars button {
    border: none;
    background: transparent;
    font-size: 1.35rem;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.15s, transform 0.15s;
}
.survey-stars button.active, .survey-stars button:hover { opacity: 1; transform: scale(1.1); }

.empty-state-rich {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.2);
    background: rgba(255,255,255,0.02);
}
.empty-state-rich i { font-size: 1.75rem; color: #64748b; margin-bottom: 0.5rem; }

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
@media (max-width: 768px) {
    .kanban-board { grid-template-columns: 1fr; }
}
.kanban-col {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 12px;
    padding: 0.65rem;
    min-height: 120px;
}
.kanban-col h6 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.kanban-item {
    font-size: 0.72rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    background: rgba(15,23,42,0.5);
    border: 1px solid rgba(148,163,184,0.08);
    margin-bottom: 0.35rem;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.35rem;
}
.heatmap-cell {
    text-align: center;
    padding: 0.45rem 0.25rem;
    border-radius: 8px;
    font-size: 0.62rem;
    line-height: 1.2;
}
.heatmap-cell b { display: block; font-size: 0.75rem; }

.mgmt-tab-group-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 0.35rem 0.75rem 0.15rem;
    border-top: 1px solid rgba(148,163,184,0.1);
    margin-top: 0.35rem;
}

#roleOnboardingModal .modal-body { font-size: 0.88rem; line-height: 1.55; }
#roleOnboardingModal ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }
