/* === EXTRACTED & REFACTORED STYLES === */

/* Dynamic slideOut Animation */
@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* Custom layout classes */
.page-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-card-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.flow-scheme-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    position: relative;
}

.flow-stat-icon-container {
    margin: 0 auto 0.5rem;
}

.flow-stat-icon-secondary {
    margin: 0 auto 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--secondary);
}

.flow-stat-icon-success {
    margin: 0 auto 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.flow-stat-icon-warning {
    margin: 0 auto 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.flow-stat-value {
    font-weight: 800;
    font-size: 1.25rem;
}

.flow-stat-label-muted {
    font-size: 0.75rem;
}

.flow-connector-line {
    width: 50px;
    height: 2px;
    background: var(--border-glass);
    flex: 1;
    margin: 0 10px;
}

.flow-info-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.5;
}

.flow-info-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* Action columns widths */
.th-action-sm {
    width: 120px;
}

.th-action-md {
    width: 150px;
}

/* Legend dots dynamic styling */
.legend-dot-danger {
    background-color: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

.legend-dot-secondary {
    background-color: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

.legend-dot-success {
    background-color: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.legend-dot-primary {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.toast-exit {
    animation: slideOut 0.4s forwards cubic-bezier(0.4, 0, 0.2, 1);
}


/* ═══════════════════════════════════════════════════════════
   AUTH PAGE — Login & Register
   ═══════════════════════════════════════════════════════════ */

/* Body override khusus auth page */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-base);
}

/* ── Animated Background ─────────────────────────── */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 8s ease-in-out infinite alternate;
}
.auth-bg-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 70%);
    top: -15%; left: -10%;
    animation-delay: 0s;
}
.auth-bg-orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
    bottom: -20%; right: -10%;
    animation-delay: -3s;
}
.auth-bg-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
    top: 50%; left: 60%;
    animation-delay: -6s;
}

@keyframes orbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, -30px) scale(1.08); }
}

.auth-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Main Container ──────────────────────────────── */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ── Brand Logo ──────────────────────────────────── */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.auth-brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.6));
}
.auth-brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.auth-brand-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Card ────────────────────────────────────────── */
.auth-card {
    width: 100%;
    background: rgba(13, 17, 27, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 32px 64px rgba(0,0,0,0.5),
        0 0 0 1px rgba(6, 182, 212, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Shake animation on error ────────────────────── */
@keyframes cardShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}
.auth-card-shake {
    animation: cardShake 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Panel Transitions ───────────────────────────── */
.auth-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: panelFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-panel-hidden {
    display: none;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes panelFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

.auth-panel-exit {
    animation: panelFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.auth-panel-enter {
    animation: panelFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Panel Header ────────────────────────────────── */
.auth-panel-header {
    text-align: center;
    margin-bottom: 0.25rem;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-active);
    margin-bottom: 0.35rem;
}
.auth-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Form & Fields ───────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.02em;
}
.auth-label-icon {
    width: 13px;
    height: 13px;
    stroke: var(--primary);
    flex-shrink: 0;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-right: 2.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
}
.auth-input::placeholder {
    color: rgba(156, 163, 175, 0.5);
}
.auth-input:focus {
    border-color: var(--border-glass-active);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.toggle-password {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}
.toggle-password svg {
    width: 16px;
    height: 16px;
}
.toggle-password:hover { color: var(--primary); }

/* ── Error Message ───────────────────────────────── */
.auth-error {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f87171;
}
.auth-error::before {
    content: '⚠';
    flex-shrink: 0;
}

/* ── Submit Button ───────────────────────────────── */
.auth-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    color: white;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
    position: relative;
    overflow: hidden;
}
.auth-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.auth-btn:hover:not(:disabled)::before { opacity: 1; }
.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(6, 182, 212, 0.45);
}
.auth-btn:active:not(:disabled) { transform: translateY(0); }
.auth-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}
.auth-btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
}

.auth-btn-loader {
    display: none;
    align-items: center;
}
.spin-icon {
    width: 18px;
    height: 18px;
    animation: spinAnim 0.9s linear infinite;
}
@keyframes spinAnim {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Divider ─────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-glass);
}

/* ── Demo Account Hint ───────────────────────────── */
.auth-demo-hint {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
}
.demo-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
}
.demo-icon {
    width: 14px;
    height: 14px;
}
.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.demo-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
    flex-wrap: wrap;
}
.demo-account:hover {
    background: rgba(6, 182, 212, 0.08);
}
.demo-account code {
    font-size: 0.78rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    background: rgba(255,255,255,0.05);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}
.demo-sep {
    color: var(--text-muted);
    font-size: 0.72rem;
}
.demo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
}
.badge-admin {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.badge-tech {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* ── Switch Panel Text ───────────────────────────── */
.auth-switch-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.auth-link {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.auth-link:hover { color: #22d3ee; }

/* ── Footer text ─────────────────────────────────── */
.auth-footer-text {
    font-size: 0.72rem;
    color: rgba(156, 163, 175, 0.5);
    text-align: center;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 520px) {
    .auth-card {
        border-radius: 16px;
        padding: 2rem 1.25rem;
    }
    .auth-fields-row {
        grid-template-columns: 1fr;
    }
    .auth-brand-name {
        font-size: 1.35rem;
    }
}


/* ═══════════════════════════════════════════════════════════
   LOGOUT BUTTON — Sidebar Profile Footer (Premium)
   ═══════════════════════════════════════════════════════════ */

.btn-logout {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.65rem 1.1rem;
    border: none;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gradient background merah premium */
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.18) 0%,
        rgba(220, 38, 38, 0.1) 50%,
        rgba(251, 113, 133, 0.12) 100%
    );
    color: #fca5a5;

    /* Border dengan gradient merah */
    border: 1px solid rgba(239, 68, 68, 0.3);

    /* Inner glow subtle */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(239, 68, 68, 0.08);
}

/* Shimmer sweep animation */
.btn-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 80%
    );
    transition: left 0.6s ease;
    pointer-events: none;
}

/* Top highlight line */
.btn-logout::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(252, 165, 165, 0.4),
        transparent
    );
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-logout svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
}

.btn-logout span {
    transition: letter-spacing 0.3s ease;
}

/* ── Hover State ─── */
.btn-logout:hover {
    background: linear-gradient(
        135deg,
        rgba(239, 68, 68, 0.32) 0%,
        rgba(220, 38, 38, 0.22) 50%,
        rgba(251, 113, 133, 0.28) 100%
    );
    border-color: rgba(239, 68, 68, 0.6);
    color: #fecaca;
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(239, 68, 68, 0.25),
        0 0 0 1px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    letter-spacing: 0.07em;
}

.btn-logout:hover::before {
    left: 150%;
}

.btn-logout:hover::after {
    opacity: 1;
}

.btn-logout:hover svg {
    transform: translateX(3px) rotate(-8deg);
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.7));
}

/* ── Active/Press State ─── */
.btn-logout:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 2px 8px rgba(239, 68, 68, 0.2),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ── Focus ring accessibility ─── */
.btn-logout:focus-visible {
    outline: 2px solid rgba(239, 68, 68, 0.6);
    outline-offset: 3px;
}

/* Pulse keyframe saat pertama load */
@keyframes logoutPulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Utilities */
.mb-1-5 { margin-bottom: 1.5rem !important; }
.mt-1 { margin-top: 1rem !important; }

/* Radio Form Group */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   EXTRACTION AND REFACTORING STYLES (NEW)
   ═══════════════════════════════════════════════════════════ */

/* --- Icon Utilities --- */
.icon-sm {
    width: 14px !important;
    height: 14px !important;
}

.icon-md {
    width: 18px !important;
    height: 18px !important;
}

.icon-16 {
    width: 16px !important;
    height: 16px !important;
}

.icon-xs-inline {
    width: 12px !important;
    height: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-right: 4px !important;
}

/* --- Impersonate Banner --- */
.impersonate-banner {
    background: linear-gradient(90deg, var(--warning), #f97316);
    color: white;
    padding: 10px 20px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0 0 12px 12px;
    margin: -20px 20px 20px 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    z-index: 99;
    position: relative;
}

.impersonate-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-exit-impersonate {
    background: white !important;
    color: var(--warning) !important;
    border: none !important;
    padding: 6px 15px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.btn-exit-impersonate:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-1px);
}

/* --- Authentication Page Panel Groups --- */
.auth-bullet-separator {
    color: #aaa;
    margin: 0 5px;
}

.auth-link-primary {
    color: var(--primary) !important;
}

.auth-panel-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-panel-group-lg {
    margin-bottom: 20px;
}

.auth-panel-group-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.auth-panel-group-title-primary {
    color: var(--primary);
}

.auth-panel-group-title-success {
    color: var(--success);
}

.auth-btn-gradient-success {
    background: linear-gradient(135deg, var(--primary), var(--success)) !important;
    border: none !important;
}

.auth-btn-gradient-success:hover {
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.45) !important;
}

/* --- Map Custom Markers --- */
.custom-map-marker {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Marker color definitions */
.map-marker-olt {
    --marker-color: #ef4444;
}

.map-marker-odc {
    --marker-color: #6366f1;
}

.map-marker-odp {
    --marker-color: #10b981;
}

.map-marker-cust {
    --marker-color: #06b6d4;
}

.map-marker-dot {
    width: 14px;
    height: 14px;
    background-color: var(--marker-color);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--marker-color);
    position: relative;
}

.map-marker-pulse {
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: var(--marker-color);
    opacity: 0.3;
    border-radius: 50%;
    top: -8px;
    left: -8px;
    animation: markerPulse 1.8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes markerPulse {
    0% { transform: scale(0.6); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.popup-info-val-address {
    display: inline-block;
    max-width: 150px;
    white-space: normal;
    text-align: right;
}

/* --- Table & Text Layout Helpers --- */
.text-xs-muted {
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
}

.text-sm-8 {
    font-size: 0.8rem !important;
}

.table-cell-ellipsis-180 {
    max-width: 180px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.table-cell-ellipsis-250 {
    max-width: 250px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.btn-helper-container {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-helper {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.7rem !important;
    border-radius: 6px !important;
}

.text-cyan {
    color: var(--primary) !important;
}

.mt-xs {
    margin-top: 4px !important;
}

/* --- Ticket History Component Styles --- */
.ticket-history-header {
    margin-top: 2rem !important;
    border-top: 1px solid var(--border-color) !important;
    padding-top: 1rem !important;
}

.ticket-history-title {
    font-size: 1.1rem !important;
    color: var(--primary) !important;
}

.ticket-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.ticket-history-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.flex-between-mb {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* --- Dashboard Stat Icon Modifiers --- */
.stat-icon-secondary {
    background: rgba(99, 102, 241, 0.1) !important;
    color: var(--secondary) !important;
}

.stat-icon-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success) !important;
}

.stat-icon-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: var(--warning) !important;
}

.stat-icon-danger-active {
    background: rgba(239, 68, 68, 0.2) !important;
    color: var(--danger) !important;
    animation: pulse 2s infinite !important;
}

.stat-icon-muted {
    background: rgba(107, 114, 128, 0.1) !important;
    color: var(--text-muted) !important;
}

.stat-card-danger {
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.stat-label-danger {
    color: var(--danger) !important;
    font-weight: 700 !important;
}

.stat-value-danger {
    color: var(--danger) !important;
}

.stat-value-unit {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.8;
}

/* === UTILITY FOR HIDDEN ELEMENTS === */
.d-none, .init-hidden {
    display: none;
}

/* --- Extracted from index.html & Views --- */
.reset-confirm-input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.action-bar-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-wrapper-flex { flex: 1; min-width: 200px; }
.filter-wrapper-flex { display: flex; align-items: center; gap: 8px; }
.filter-label { font-weight: 600; }
.filter-date-input {
    background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 500;
    outline: none; cursor: pointer; transition: all 0.3s;
}
.btn-clear-date { padding: 6px 12px; font-size: 12px; display: none; }
.btn-icon-flex { display: flex; align-items: center; gap: 6px; }

/* Extracted Mikrotik Styles */
.mikrotik-card-panel {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px; border-radius: 8px;
}
.mikrotik-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mikrotik-title-wrapper { display: flex; align-items: center; gap: 8px; }
.mikrotik-title-text { font-size: 13px; color: #fff; letter-spacing: 0.5px; }
.status-badge-green {
    background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.status-badge-red {
    background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center;
}
.status-pulse-green {
    display: inline-block; width: 6px; height: 6px; background: #10b981; border-radius: 50%; animation: pulse 1.5s infinite;
}
.mikrotik-form-group { margin-bottom: 12px; }
.mikrotik-form-label { font-size: 11px; color: #9ca3af; margin-bottom: 4px; }
.mikrotik-select {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #fff; font-size: 12px; padding: 6px 10px;
}
.mikrotik-info-box {
    font-size: 11.5px; color: #9ca3af; margin-bottom: 12px; line-height: 1.5; background: rgba(0,0,0,0.2);
    padding: 8px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.05);
}
.mikrotik-info-val-cyan { color: #22d3ee; font-family: monospace; }
.mikrotik-info-val-blue { color: #60a5fa; font-family: monospace; }
.mikrotik-success-box {
    color: #34d399; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
    background: rgba(52, 211, 153, 0.1); padding: 8px; border-radius: 4px;
}
.btn-connect-pppoe {
    width: 100%; justify-content: center; background: linear-gradient(135deg, #6366f1, #4f46e5); color: white;
    border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; transition: opacity 0.2s;
}
.pppoe-loading-area { display: none; margin-top: 8px; }
.pppoe-loading-text { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #60a5fa; margin-bottom: 6px; }
.pppoe-progress-track { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; position: relative; }
.pppoe-progress-bar { width: 0%; height: 100%; background: linear-gradient(90deg, #3b82f6, #60a5fa); transition: width 0.3s ease; }
.load-more-cell { padding: 15px; }
.btn-load-more { width: 100%; max-width: 300px; }
.empty-archive-msg { padding: 20px; }

.coordinate-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
}
.coordinate-link:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}
.coordinate-link span {
    font-family: monospace;
    font-size: 11px;
    color: #e5e7eb;
}
