/* ========================================
   PACKSCREEN - ePerformances Style
   Neon Glow Cyberpunk Dashboard
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --card-bg: #0f0f0f;
    --border: #1a1a1a;
    --text: #ffffff;
    --text-muted: #6b7280;
    --cyan: #00f2ff;
    --cyan-glow: rgba(0, 242, 255, 0.4);
    --green: #22c55e;
    --green-glow: rgba(34, 197, 94, 0.4);
    --blue: #3b82f6;
    --orange: #f97316;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Neon Glow Container */
.dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    position: relative;
}

.dashboard::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 150px rgba(0, 180, 255, 0.15);
    z-index: 0;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px var(--cyan-glow);
}

.header-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-logo {
    font-size: 14px;
    font-weight: 600;
    color: #a0a0a0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.header-logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 36px;
    min-height: 36px;
    font-size: 14px;
    font-weight: 600;
}

.icon-btn:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

.clock-container {
    text-align: right;
}

.clock-time {
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 600;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}

.clock-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   KPI CARDS ROW
   ======================================== */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 9999 !important;
}

.kpi-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kpi-card--clickable {
    cursor: pointer;
}

.kpi-card--clickable:hover {
    transform: translateY(-4px);
}

.kpi-card--cyan.kpi-card--clickable:hover {
    border-color: var(--cyan);
    box-shadow: 0 10px 30px -10px var(--cyan-glow);
}

.kpi-card--green.kpi-card--clickable:hover {
    border-color: var(--green);
    box-shadow: 0 10px 30px -10px var(--green-glow);
}

.kpi-card--blue.kpi-card--clickable:hover {
    border-color: var(--blue);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.4);
}

.kpi-card--clickable:active {
    transform: translateY(-2px);
}


.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.kpi-card--cyan::before {
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.kpi-card--green::before {
    background: var(--green);
    box-shadow: 0 0 20px var(--green-glow);
}

.kpi-card--blue::before {
    background: var(--blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.kpi-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon--cyan {
    background: rgba(0, 242, 255, 0.15);
}

.kpi-icon--green {
    background: rgba(34, 197, 94, 0.15);
}

.kpi-icon--blue {
    background: rgba(59, 130, 246, 0.15);
}

.kpi-icon svg {
    width: 22px;
    height: 22px;
}

.kpi-icon--cyan svg {
    stroke: var(--cyan);
}

.kpi-icon--green svg {
    stroke: var(--green);
}

.kpi-icon--blue svg {
    stroke: var(--blue);
}

.kpi-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.kpi-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.kpi-value--cyan {
    color: var(--text);
}

.kpi-value--green {
    color: var(--green);
    text-shadow: 0 0 30px var(--green-glow);
}

.kpi-value--blue {
    color: var(--text);
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   MAIN CHART
   ======================================== */
.chart-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
    z-index: 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-rate {
    font-size: 13px;
    color: var(--text-muted);
}

.chart-rate span {
    color: var(--cyan);
    font-weight: 600;
}

.chart-wrapper {
    flex: 1;
    position: relative;
    min-height: 200px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.legend-line {
    width: 20px;
    height: 2px;
}

.legend-line--solid-cyan {
    background: var(--cyan);
}

.legend-line--dashed-cyan {
    background: repeating-linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px 8px);
}

.legend-line--dashed-gray {
    background: repeating-linear-gradient(90deg, #6b7280 0 4px, transparent 4px 8px);
}

.legend-line--dashed-orange {
    background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 8px);
}

/* Info Banner */
.info-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 6px;
    margin-top: 12px;
    font-size: 11px;
    color: var(--cyan);
}

.info-banner svg {
    width: 16px;
    height: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ========================================
   BOTTOM SECTION
   ======================================== */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.bottom-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}

.bottom-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bottom-card-header svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-muted);
}

.bottom-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Team Stats */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.team-stat-value {
    font-size: 24px;
    font-weight: 700;
}

.team-stat-value--cyan {
    color: var(--cyan);
}

.team-stat-value--green {
    color: var(--green);
}

/* Overdue Card */
.overdue-card {
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.overdue-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.overdue-ok-icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.overdue-ok-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--green);
}

.overdue-ok-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px;
    font-size: 11px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* ========================================
   LOADING
   ======================================== */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   DETAILS VIEW (DASHBOARD-EXTENSION STYLE)
   ======================================== */
.details-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    animation: fadeIn 0.3s ease-out;
}

.details-sub-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.view-mode-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 242, 255, 0.03);
}

.back-link:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--cyan);
    color: var(--text);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
    transform: translateX(-2px);
}

.back-link svg {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.details-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.detail-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.detail-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.detail-panel--cyan::before {
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.detail-panel--red::before {
    background: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.detail-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-panel-title svg {
    width: 18px;
    height: 18px;
}

.detail-panel-count {
    font-family: var(--mono);
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.detail-panel-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.order-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.order-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 4px;
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.order-box:hover {
    border-color: var(--cyan);
    color: var(--text);
    background: rgba(0, 242, 255, 0.05);
}

.detail-panel--red .order-box {
    border-color: rgba(239, 68, 68, 0.1);
}

.detail-panel--red .order-box:hover {
    border-color: #ef4444;
    color: #ef4444;
}

@media (max-width: 1000px) {
    .details-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PORTAL HOME
   ======================================== */
.portal-home {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    animation: fadeIn 0.4s ease-out;
}

/* --- Sales Dashboard & Settings --- */
.portal-content {
    animation: fadeIn 0.5s ease-out;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    width: 100%;
}

.search-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 15px var(--cyan-glow);
}

.detail-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.detail-panel:hover {
    border-color: rgba(0, 242, 255, 0.2);
}

.detail-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.detail-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-panel-title svg {
    width: 18px;
    height: 18px;
}

.detail-panel-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Login & Auth --- */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-form .input-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.login-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.login-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    background: rgba(0, 242, 255, 0.02);
}

.login-btn {
    width: 100%;
    background: var(--cyan);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 20px var(--cyan-glow);
    transition: all 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.portal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.portal-hero {
    text-align: center;
    margin-bottom: 60px;
}

.portal-welcome {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.portal-welcome span {
    color: var(--cyan);
    text-shadow: 0 0 30px var(--cyan-glow);
}

.portal-tagline {
    font-size: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card--cyan:hover {
    border-color: var(--cyan);
    box-shadow: 0 20px 40px -10px var(--cyan-glow);
    transform: translateY(-8px);
}

.app-card--green:hover {
    border-color: var(--green);
    box-shadow: 0 20px 40px -10px var(--green-glow);
    transform: translateY(-8px);
}

.app-card--blue:hover {
    border-color: var(--blue);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.4);
    transform: translateY(-8px);
}

.app-card--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.app-card--disabled:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.4s;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
}

.app-icon--cyan {
    background: rgba(0, 242, 255, 0.1);
}

.app-icon--green {
    background: rgba(34, 197, 94, 0.1);
}

.app-icon--blue {
    background: rgba(59, 130, 246, 0.1);
}

.app-icon svg {
    width: 36px;
    height: 36px;
}

.app-icon--cyan svg {
    stroke: var(--cyan);
}

.app-icon--green svg {
    stroke: var(--green);
}

.app-icon--blue svg {
    stroke: var(--blue);
}

.app-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.app-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.app-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    background: var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .app-grid {
        grid-template-columns: 1fr;
    }

    .portal-welcome {
        font-size: 32px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Login & Auth --- */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-form .input-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.login-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.login-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    background: rgba(0, 242, 255, 0.02);
}

.login-btn {
    width: 100%;
    background: var(--cyan);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 20px var(--cyan-glow);
    transition: all 0.2s;
}

.login-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.login-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--green);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: center;
}

.login-link {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-link:hover {
    color: var(--text);
}

.login-link--cyan {
    color: var(--cyan);
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}


/* Test Environment Styles */
:root {
    --yellow: #facc15;
    --yellow-glow: rgba(250, 204, 21, 0.4);
}
.app-card--yellow:hover {
    border-color: var(--yellow);
    box-shadow: 0 20px 40px -10px var(--yellow-glow);
    transform: translateY(-8px);
}
.app-icon--yellow {
    background: rgba(250, 204, 21, 0.1);
}
.app-icon--yellow svg {
    stroke: var(--yellow);
}
.kpi-card--yellow::before {
    background: var(--yellow);
    box-shadow: 0 0 20px var(--yellow-glow);
}
.kpi-card--yellow.kpi-card--clickable:hover {
    border-color: var(--yellow);
    box-shadow: 0 10px 30px -10px var(--yellow-glow);
}
.kpi-value--yellow {
    color: var(--yellow);
    text-shadow: 0 0 30px var(--yellow-glow);
}
.kpi-icon--yellow {
    background: rgba(250, 204, 21, 0.15);
}
.kpi-icon--yellow svg {
    stroke: var(--yellow);
}

/* ========================================
   ANIMATIONS & REAL-TIME EFFECTS
   ======================================== */
@keyframes highlight-flash {
    0% { background-color: var(--cyan); color: #000; box-shadow: 0 0 30px var(--cyan-glow); transform: scale(1.05); }
    100% { background-color: rgba(255, 255, 255, 0.03); color: var(--text-muted); box-shadow: none; transform: scale(1); }
}

.highlight-flash {
    animation: highlight-flash 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 10;
}

@keyframes kpi-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(0, 242, 255, 0.3); }
    100% { transform: scale(1); }
}

.kpi-card--pulse {
    animation: kpi-pulse 1s ease-in-out;
}
