/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* Scoped styles handled in app.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Not used - nav styles in app.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ===== Visibility Rules (Blazor convention — do not change selectors) ===== */

.components-reconnect-first-attempt-visible[b-cpkdh8zp4x],
.components-reconnect-repeated-attempt-visible[b-cpkdh8zp4x],
.components-reconnect-failed-visible[b-cpkdh8zp4x],
.components-pause-visible[b-cpkdh8zp4x],
.components-resume-failed-visible[b-cpkdh8zp4x],
.components-rejoining-animation[b-cpkdh8zp4x],
.reconnect-progress[b-cpkdh8zp4x] {
    display: none;
}

/* Progress bar visible only while actively (re)connecting */
#components-reconnect-modal.components-reconnect-show .reconnect-progress[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-retrying .reconnect-progress[b-cpkdh8zp4x] {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-retrying[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-failed[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-cpkdh8zp4x] {
    display: block;
}

/* Buttons visibility */
#components-reconnect-modal.components-reconnect-failed button#components-reconnect-button[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-paused button#components-resume-button[b-cpkdh8zp4x],
#components-reconnect-modal.components-reconnect-resume-failed button#components-resume-button[b-cpkdh8zp4x] {
    display: inline-flex;
}

/* ===== Dialog ===== */

#components-reconnect-modal[b-cpkdh8zp4x] {
    position: fixed;
    border: 0;
    background: transparent;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: rcm-fadeOut-b-cpkdh8zp4x 0.4s ease both;
}

#components-reconnect-modal[open][b-cpkdh8zp4x] {
    pointer-events: auto;
    z-index: 99999;
    inset: 0;
    animation: rcm-fadeIn-b-cpkdh8zp4x 0.5s ease-out 0.1s both;
}

#components-reconnect-modal[b-cpkdh8zp4x]::backdrop {
    background: rgba(0, 9, 21, 0.72);
    backdrop-filter: blur(10px) saturate(0.85);
    -webkit-backdrop-filter: blur(10px) saturate(0.85);
    animation: rcm-fadeIn-b-cpkdh8zp4x 0.4s ease-out;
    opacity: 1;
}

/* ===== Card ===== */

.components-reconnect-container[b-cpkdh8zp4x] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background:
        radial-gradient(120% 90% at 50% -10%, rgba(59, 130, 246, 0.14) 0%, transparent 60%),
        linear-gradient(165deg, rgba(14, 28, 50, 0.96) 0%, rgba(2, 11, 24, 0.98) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 44px 52px 40px;
    min-width: 360px;
    max-width: 440px;
    box-shadow:
        0 0 0 1px rgba(59, 130, 246, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 100px rgba(59, 130, 246, 0.08);
    animation: rcm-cardIn-b-cpkdh8zp4x 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ===== Progress bar ===== */

.reconnect-progress[b-cpkdh8zp4x] {
    width: 180px;
    height: 3px;
    margin-top: -2px;
    background: rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.reconnect-progress-bar[b-cpkdh8zp4x] {
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: rcm-progressSlide-b-cpkdh8zp4x 1.4s ease-in-out infinite;
}

#components-reconnect-modal.components-reconnect-retrying .reconnect-progress-bar[b-cpkdh8zp4x] {
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* ===== Animation: Battery Icon + Signal Pulses ===== */

.components-rejoining-animation[b-cpkdh8zp4x] {
    position: relative;
    width: 88px;
    height: 88px;
    /* No flex needed — children are absolutely positioned or the icon ring is centered via margin */
}

/* Hide the default empty divs from Blazor convention */
.components-rejoining-animation > div:not([class])[b-cpkdh8zp4x] {
    display: none !important;
}

/* Icon ring — centered in the animation container */
.reconnect-icon-ring[b-cpkdh8zp4x] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.reconnect-battery-svg[b-cpkdh8zp4x] {
    color: #3b82f6;
    animation: rcm-batteryPulse-b-cpkdh8zp4x 2s ease-in-out infinite;
}

/* Battery cells — explicit classes for reliable targeting */
.reconnect-cell[b-cpkdh8zp4x] {
    opacity: 0;
    animation: rcm-cellBlink-b-cpkdh8zp4x 2s ease-in-out infinite;
}

.reconnect-cell--1[b-cpkdh8zp4x] { animation-delay: 0s; }
.reconnect-cell--2[b-cpkdh8zp4x] { animation-delay: 0.3s; }
.reconnect-cell--3[b-cpkdh8zp4x] { animation-delay: 0.6s; }

/* Signal pulse rings — centered absolutely */
.reconnect-pulse[b-cpkdh8zp4x] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    border-radius: 50%;
    border: 1.5px solid #3b82f6;
    opacity: 0;
    animation: rcm-signalPulse-b-cpkdh8zp4x 2.4s ease-out infinite;
}

.reconnect-pulse--1[b-cpkdh8zp4x] {
    width: 52px;
    height: 52px;
    animation-delay: 0s;
}
.reconnect-pulse--2[b-cpkdh8zp4x] {
    width: 68px;
    height: 68px;
    animation-delay: 0.4s;
}
.reconnect-pulse--3[b-cpkdh8zp4x] {
    width: 84px;
    height: 84px;
    animation-delay: 0.8s;
}

/* ── State: Retrying → orange ── */
#components-reconnect-modal.components-reconnect-retrying .reconnect-icon-ring[b-cpkdh8zp4x] {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.15);
}
#components-reconnect-modal.components-reconnect-retrying .reconnect-battery-svg[b-cpkdh8zp4x] {
    color: #f59e0b;
}
#components-reconnect-modal.components-reconnect-retrying .reconnect-pulse[b-cpkdh8zp4x] {
    border-color: #f59e0b;
}

/* ── State: Failed → red, static ── */
#components-reconnect-modal.components-reconnect-failed .reconnect-icon-ring[b-cpkdh8zp4x] {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}
#components-reconnect-modal.components-reconnect-failed .reconnect-battery-svg[b-cpkdh8zp4x] {
    color: #ef4444;
    animation: none;
    opacity: 0.6;
}
#components-reconnect-modal.components-reconnect-failed .reconnect-pulse[b-cpkdh8zp4x] {
    animation: none;
    opacity: 0;
}
#components-reconnect-modal.components-reconnect-failed .reconnect-cell[b-cpkdh8zp4x] {
    animation: none;
    opacity: 0.2;
}

/* ===== Text ===== */

#components-reconnect-modal p[b-cpkdh8zp4x] {
    margin: 0;
    text-align: center;
    line-height: 1;
}

.reconnect-title[b-cpkdh8zp4x] {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: -0.2px;
}

.reconnect-title--warn[b-cpkdh8zp4x] { color: #f59e0b; }
.reconnect-title--error[b-cpkdh8zp4x] { color: #ef4444; }

.reconnect-sub[b-cpkdh8zp4x] {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Animated dots */
.reconnect-dots span[b-cpkdh8zp4x] {
    animation: rcm-dotBlink-b-cpkdh8zp4x 1.4s ease-in-out infinite;
    opacity: 0;
    font-weight: 600;
    color: #e2e8f0;
}
.reconnect-dots span:nth-child(1)[b-cpkdh8zp4x] { animation-delay: 0s; }
.reconnect-dots span:nth-child(2)[b-cpkdh8zp4x] { animation-delay: 0.2s; }
.reconnect-dots span:nth-child(3)[b-cpkdh8zp4x] { animation-delay: 0.4s; }

/* ===== Buttons ===== */

#components-reconnect-modal button[b-cpkdh8zp4x] {
    display: none;
    align-items: center;
    gap: 8px;
    border: 0;
    background: #3b82f6;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
    margin-top: 4px;
}

#components-reconnect-modal button:hover[b-cpkdh8zp4x] {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

#components-reconnect-modal button:active[b-cpkdh8zp4x] {
    transform: translateY(0);
    background: #1d4ed8;
}

/* ===== Keyframes ===== */

@keyframes rcm-fadeIn-b-cpkdh8zp4x {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rcm-fadeOut-b-cpkdh8zp4x {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes rcm-cardIn-b-cpkdh8zp4x {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rcm-batteryPulse-b-cpkdh8zp4x {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes rcm-cellBlink-b-cpkdh8zp4x {
    0%, 15% { opacity: 0; }
    25%, 65% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

@keyframes rcm-signalPulse-b-cpkdh8zp4x {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    15% {
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes rcm-dotBlink-b-cpkdh8zp4x {
    0%, 20% { opacity: 0; }
    40%, 60% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

@keyframes rcm-progressSlide-b-cpkdh8zp4x {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(370%); }
}
/* /Components/Pages/Authentication/Register.razor.rz.scp.css */
/* Wider registration card */
.register-wide[b-ocatchuwna] {
    max-width: 620px;
}

.register-topbar[b-ocatchuwna] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.branch-select[b-ocatchuwna] {
    position: relative;
    z-index: 50;
}

.branch-input[b-ocatchuwna] {
    position: relative;
    z-index: 2;
}

.branch-backdrop[b-ocatchuwna] {
    position: fixed;
    inset: 0;
    z-index: 1;
}

.branch-dropdown[b-ocatchuwna] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 3;
    max-height: 240px;
    overflow-y: auto;
    background: var(--bg-elevated, #0f243f);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm, 8px);
    box-shadow: var(--shadow-lg);
    padding: 4px;
}

.branch-option[b-ocatchuwna] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
}

.branch-option:hover[b-ocatchuwna],
.branch-option--active[b-ocatchuwna] {
    background: rgba(29, 111, 224, 0.15);
}

.branch-option-name[b-ocatchuwna] {
    font-size: 14px;
    font-weight: 500;
}

.branch-option-meta[b-ocatchuwna] {
    font-size: 12px;
    color: var(--text-secondary);
}

.branch-empty[b-ocatchuwna] {
    padding: 14px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.register-login-link[b-ocatchuwna] {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.register-success[b-ocatchuwna] {
    text-align: center;
}

.register-success-icon[b-ocatchuwna] {
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
}
