﻿.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-glow .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: orbFloat 25s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
}

.bg-glow .orb1 {
    width: 600px;
    height: 600px;
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.15), transparent 70%);
}

.bg-glow .orb2 {
    width: 500px;
    height: 500px;
    bottom: -10%;
    left: -5%;
    background: radial-gradient(circle, rgba(var(--accent-rgb, 14,165,233),0.10), transparent 70%);
    animation-delay: 7s;
}

.bg-glow .grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(to right, #cbd5e1 1px, transparent 1px),
        linear-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 200px 200px;
}

.bg-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8effc 40%, #f0f5ff 100%);
    position: relative;
    overflow: hidden;
}

.bg-login::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(96,165,250,0.04) 0%, transparent 40%);
    pointer-events: none;
}

.bg-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(59,130,246,0.15);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 15s; }
.particle:nth-child(2) { width: 3px; height: 3px; background: rgba(59,130,246,0.12); left: 20%; animation-duration: 18s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-duration: 22s; animation-delay: 4s; }
.particle:nth-child(4) { width: 2px; height: 2px; background: rgba(16,185,129,0.1); left: 60%; animation-duration: 16s; animation-delay: 1s; }
.particle:nth-child(5) { left: 80%; animation-duration: 20s; animation-delay: 3s; }

.container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.login-box {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(255,255,255,0.6));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(59,130,246,0.1);
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    box-shadow: 0 25px 60px rgba(59,130,246,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
    width: 100%;
    max-width: 440px;
    animation: blurFadeIn .8s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    border-radius: 2rem 2rem 0 0;
}

.login-box .logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.login-box .logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(37,99,235,0.25);
    position: relative;
}

.login-box .logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37,99,235,0.3), rgba(59,130,246,0.3));
    z-index: -1;
    filter: blur(8px);
}

.login-box .logo-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.login-box .brand-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #3b82f6;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.login-box h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 700;
}

.login-box .subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.field-group {
    position: relative;
}

.field-group label {
    display: block;
    font-weight: 600;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field-group .input-wrap {
    position: relative;
}

.field-group .input-wrap .ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color .3s;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-group .input-wrap .ico svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.field-group input {
    width: 100%;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(59,130,246,0.12);
    color: #0f172a;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 9999px;
    outline: none;
    font-size: 0.9rem;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    backdrop-filter: blur(12px);
}

.field-group input:focus {
    border-color: rgba(59,130,246,0.4);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1), 0 0 20px rgba(59,130,246,0.05);
}

.field-group input::placeholder {
    color: #52525b;
}

.field-group:focus-within .ico {
    color: rgba(59,130,246,0.7);
}

.btn-submit {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 24px rgba(59,130,246,0.25);
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left .5s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59,130,246,0.35);
}

.btn-submit:hover::after {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit-link {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 9999px;
    padding: 0.9rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(59,130,246,0.25);
}

.btn-submit-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59,130,246,0.25);
    color: #fff;
}

.erro-msg {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 9999px;
    color: #dc2626;
    font-size: 0.82rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    animation: shake .4s ease;
}

.sucesso-msg {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.15);
    border-radius: 9999px;
    color: #059669;
    font-size: 0.82rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.credentials-box {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.credentials-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
    border-radius: 1.5rem 1.5rem 0 0;
}

.credentials-box h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.cred-item {
    margin-bottom: 0.8rem;
}

.cred-label {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.cred-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #3b82f6;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: rgba(255,255,255,0.7);
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(59,130,246,0.1);
    display: inline-block;
    min-width: 200px;
    word-break: break-all;
    backdrop-filter: blur(12px);
}

.cred-warning {
    font-size: 0.75rem;
    color: #3b82f6;
    margin-top: 0.8rem;
    font-weight: 600;
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.links a {
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.links a:hover {
    color: #0f172a;
}

.side-text {
    display: none;
}

@media screen and (min-width: 1024px) {
    .side-text {
        display: flex;
        align-items: center;
        flex: 1;
        padding-left: 2rem;
    }

    .side-text h1 {
        font-size: 4rem;
        font-weight: 700;
        line-height: 1.15;
        color: #0f172a;
        text-shadow: 0 0 80px rgba(59,130,246,0.08);
    }

    .side-text h1 span {
        background: linear-gradient(135deg, #3b82f6, #60a5fa);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(240,245,255,0.9));
    border-right: 1px solid rgba(59,130,246,0.08);
    padding: 25px 0;
    z-index: 10;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(59,130,246,0.06);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #0ea5e9));
    pointer-events: none;
    z-index: 1;
}

.sidebar-brand {
    padding: 0 24px 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.sidebar-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all var(--duration-normal, 250ms) ease;
}

.sidebar-menu {
    list-style: none;
    padding: 0 16px;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text2);
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 13px;
    transition: all .25s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-menu a:hover {
    background: rgba(59,130,246,0.06);
    color: var(--text);
}

.sidebar-menu a.active {
    background: rgba(var(--primary-rgb),0.1);
    color: rgba(var(--primary-rgb),1);
    border: 1px solid rgba(var(--primary-rgb),0.15);
    box-shadow: 0 2px 8px rgba(59,130,246,0.1);
}

.sidebar-menu a i {
    width: 18px;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text2);
    text-decoration: none;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 9999px;
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-footer a:hover {
    color: var(--red);
    background: rgba(239,68,68,0.06);
}

.main {
    margin-left: 260px;
    padding: 35px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-brand {
    padding: 0 12px 25px;
    justify-content: center;
}

.sidebar.collapsed .sidebar-logo {
    height: 38px;
}

.sidebar.collapsed .sidebar-menu {
    padding: 0 8px;
}

.sidebar.collapsed .sidebar-menu a {
    justify-content: center;
    padding: 11px;
    border-radius: 12px;
    font-size: 0;
}

.sidebar.collapsed .sidebar-menu a i {
    margin: 0;
    font-size: 16px;
}

.sidebar.collapsed .sidebar-menu li[style] {
    margin-left: 8px;
    margin-right: 8px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 20px 8px;
}

.sidebar.collapsed .sidebar-footer a {
    justify-content: center;
    padding: 12px;
    border-radius: 12px;
    font-size: 0;
}

.sidebar.collapsed .sidebar-footer a i {
    font-size: 16px;
}

.sidebar.collapsed .sidebar-menu a .menu-badge {
    display: none;
}

.sidebar.collapsed ~ .main {
    margin-left: 70px;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(59,130,246,0.08);
    background: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(240,245,255,0.6));
    color: var(--text2);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s;
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(240,245,255,0.8));
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.15);
}

.sidebar-toggle i {
    transition: transform 0.35s;
}

.sidebar.collapsed ~ .main .sidebar-toggle i {
    transform: rotate(180deg);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.page-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(240,245,255,0.6));
    padding: 10px 20px;
    border-radius: 9999px;
    border: 1px solid rgba(59,130,246,0.08);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(59,130,246,0.08);
}

.stat-card {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(240,245,255,0.6));
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 1.5rem;
    padding: 24px;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(59,130,246,0.06);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #0ea5e9));
    border-radius: 1.5rem 1.5rem 0 0;
    pointer-events: none;
}

.stat-card:hover {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.9), rgba(240,245,255,0.8));
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #2563eb));
    color: #fff;
    font-size: 16px;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb),0.25);
    transition: transform 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text2);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.card {
    background: linear-gradient(to bottom right, rgba(255,255,255,0.7), rgba(240,245,255,0.5));
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 1.5rem;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(59,130,246,0.06);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent, #0ea5e9));
    border-radius: 1.5rem 1.5rem 0 0;
    pointer-events: none;
}

.card:hover {
    box-shadow: 0 12px 40px rgba(59,130,246,0.1);
    background: linear-gradient(to bottom right, rgba(255,255,255,0.8), rgba(240,245,255,0.7));
}

.card-header {
    background: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(59,130,246,0.06);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.card-body {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.table {
    margin: 0;
    color: var(--text);
}

.table th {
    font-weight: 600;
    color: var(--text3);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(59,130,246,0.06);
    padding: 14px 16px;
    background: rgba(255,255,255,0.5);
}

.table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(59,130,246,0.04);
    font-size: 13px;
    color: var(--text2);
}

.table tbody tr:hover {
    background: rgba(59,130,246,0.02);
}

.badge-status {
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
}

.badge-active {
    background: rgba(16,185,129,0.1);
    color: var(--green);
    border: 1px solid rgba(16,185,129,0.15);
}

.badge-inactive {
    background: rgba(59,130,246,0.1);
    color: var(--red);
    border: 1px solid rgba(59,130,246,0.15);
}

.badge-admin {
    background: rgba(var(--primary-rgb),0.1);
    color: rgba(var(--primary-rgb),1);
    border: 1px solid rgba(var(--primary-rgb),0.15);
}

.badge-user {
    background: rgba(59,130,246,0.04);
    color: var(--text2);
    border: 1px solid var(--border);
}

.btn {
    font-weight: 500;
    font-size: 12px;
    padding: 10px 18px;
    border-radius: 12px;
    transition: all .25s;
}

.btn-primary {
    background: linear-gradient(to right, rgba(var(--primary-rgb),0.15), rgba(var(--primary-rgb),0.05));
    color: #3b82f6;
    border: 1px solid rgba(var(--primary-rgb),0.2);
    border-radius: 9999px;
}

.btn-primary:hover {
    background: rgba(var(--primary-rgb),0.15);
    color: #2563eb;
    border-color: rgba(var(--primary-rgb),0.4);
}

.btn-outline-light {
    border: 1px solid var(--border);
    color: var(--text2);
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-light:hover {
    background: rgba(59,130,246,0.04);
    color: var(--text);
    border-color: var(--border2);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 11px;
}

.btn-outline-success {
    border: 1px solid rgba(var(--green-rgb),0.3);
    color: var(--green);
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-success:hover {
    background: rgba(var(--green-rgb),0.1);
    color: var(--green);
}

.btn-outline-warning {
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--yellow);
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-warning:hover {
    background: rgba(245,158,11,0.1);
    color: var(--yellow);
}

.btn-outline-danger {
    border: 1px solid rgba(59,130,246,0.3);
    color: var(--red);
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-danger:hover {
    background: rgba(59,130,246,0.1);
    color: var(--red);
}

.btn-outline-info {
    border: 1px solid rgba(56,189,248,0.3);
    color: #38bdf8;
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-info:hover {
    background: rgba(56,189,248,0.1);
    color: #38bdf8;
}

.btn-outline-secondary {
    border: 1px solid var(--border);
    color: var(--text2);
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-secondary:hover {
    background: rgba(59,130,246,0.04);
    color: var(--text);
}

.btn-outline-primary {
    border: 1px solid rgba(var(--primary-rgb),0.3);
    color: rgba(var(--primary-rgb),1);
    background: transparent;
    border-radius: 9999px;
}

.btn-outline-primary:hover {
    background: rgba(var(--primary-rgb),0.1);
}

.btn-success {
    background: rgba(var(--green-rgb),0.15);
    color: var(--green);
    border: 1px solid rgba(var(--green-rgb),0.2);
    border-radius: 9999px;
}

.btn-success:hover {
    background: rgba(var(--green-rgb),0.25);
    color: var(--green);
}

.btn-warning {
    background: rgba(245,158,11,0.15);
    color: var(--yellow);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 9999px;
}

.btn-warning:hover {
    background: rgba(245,158,11,0.25);
    color: var(--yellow);
}

.form-control,
.form-select {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(59,130,246,0.12);
    color: var(--text);
    border-radius: 9999px;
    padding: 12px 18px;
    font-size: 13px;
    transition: all .25s;
    backdrop-filter: blur(12px);
}

.form-control:focus,
.form-select:focus {
    background: rgba(255,255,255,0.9);
    border-color: rgba(var(--primary-rgb),0.4);
    color: var(--text);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1);
}

.form-control::placeholder {
    color: var(--text3);
}

.form-select option {
    background: #ffffff;
    color: var(--text);
}

.form-label {
    font-weight: 600;
    font-size: 11px;
    color: var(--text3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 9999px;
}

.form-select-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 9999px;
}

.form-check-input {
    background-color: rgba(255,255,255,0.7);
    border-color: rgba(59,130,246,0.15);
}

.form-check-input:checked {
    background-color: rgba(var(--primary-rgb),0.6);
    border-color: rgba(var(--primary-rgb),0.4);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),0.1);
}

.form-check-label {
    color: var(--text);
}

.modal-content {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 2rem;
    box-shadow: 0 25px 60px rgba(59,130,246,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-header {
    border-bottom: 1px solid rgba(59,130,246,0.06);
    padding: 24px;
}

.modal-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid rgba(59,130,246,0.06);
    padding: 16px 24px;
}

.btn-close {
    opacity: .4;
}

.btn-close:hover {
    opacity: .8;
}

.modal-backdrop {
    background: rgba(0,0,0,0.4);
}

.dropdown-menu {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(59,130,246,0.12);
}

.dropdown-item {
    color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(59,130,246,0.04);
    color: var(--text);
}

.list-group-item {
    background: rgba(255,255,255,0.6);
    border-color: rgba(59,130,246,0.06);
    color: var(--text);
}

.accordion-button {
    background: rgba(255,255,255,0.6);
    color: var(--text);
    border-color: rgba(59,130,246,0.06);
}

.accordion-button:not(.collapsed) {
    background: rgba(59,130,246,0.06);
    color: var(--primary);
}

.accordion-body {
    background: rgba(255,255,255,0.5);
}

.offcanvas {
    background: rgba(255,255,255,0.95);
    color: var(--text);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.toast {
    background: rgba(255,255,255,0.95);
    color: var(--text);
    border-color: rgba(59,130,246,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.popover {
    background: rgba(255,255,255,0.95);
    color: var(--text);
    border-color: rgba(59,130,246,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tooltip-inner {
    background: #1e293b;
}

.error-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.error-count.ok {
    background: rgba(16,185,129,0.1);
    color: var(--green);
}

.error-count.warning {
    background: rgba(245,158,11,0.1);
    color: var(--yellow);
}

.error-count.danger {
    background: rgba(59,130,246,0.1);
    color: var(--red);
}

.progress {
    height: 6px;
    background: rgba(59,130,246,0.08);
    border-radius: 3px;
}

.bg-success { background: var(--green) !important; }
.bg-warning { background: var(--yellow) !important; }
.bg-danger { background: var(--red) !important; }

.alert {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 1rem;
    color: var(--text);
    font-size: 13px;
    padding: 14px 18px;
    backdrop-filter: blur(12px);
}

.alert-success {
    border-color: rgba(16,185,129,0.2);
    background: rgba(16,185,129,0.06);
    color: var(--green);
}

.alert-danger {
    border-color: rgba(59,130,246,0.2);
    background: rgba(59,130,246,0.06);
    color: var(--red);
}

.alert-info {
    border-color: rgba(var(--primary-rgb),0.2);
    background: rgba(var(--primary-rgb),0.06);
    color: rgba(var(--primary-rgb),1);
}

.alert-warning {
    border-color: rgba(245,158,11,0.2);
    background: rgba(245,158,11,0.06);
    color: var(--yellow);
}

.alert-secondary {
    border-color: var(--border);
    background: rgba(59,130,246,0.03);
    color: var(--text2);
}

code {
    background: rgba(var(--primary-rgb),0.08);
    color: rgba(var(--primary-rgb),1);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid rgba(var(--primary-rgb),0.1);
}

.status-box {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 1rem;
    padding: 16px;
    margin-bottom: 12px;
    transition: all .25s;
    backdrop-filter: blur(12px);
}

.status-box:hover {
    border-color: rgba(59,130,246,0.15);
    background: rgba(255,255,255,0.7);
    box-shadow: 0 4px 16px rgba(59,130,246,0.08);
}

.log-item {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 1rem;
    padding: 14px;
    margin-bottom: 10px;
    transition: all .25s;
}

.log-item:hover {
    border-color: rgba(59,130,246,0.15);
    box-shadow: 0 4px 16px rgba(59,130,246,0.08);
}

.log-item-error {
    border-left: 3px solid var(--red);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.code-box {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(59,130,246,0.08);
    border-radius: 1rem;
    padding: 18px;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 12px;
    overflow-x: auto;
    color: var(--text2);
}

.code-box .comment { color: var(--text3); }
.code-box .string { color: var(--green); }
.code-box .key { color: var(--yellow); }

.text-secondary { color: var(--text2) !important; }
.text-info { color: #38bdf8 !important; }
.text-warning { color: var(--yellow) !important; }
.text-danger { color: var(--red) !important; }
.text-center { text-align: center; }
.fw-bold { font-weight: 600; color: var(--text); }

.p-3.rounded-3 {
    background: rgba(255,255,255,0.5) !important;
    border: 1px solid rgba(59,130,246,0.08) !important;
    border-radius: 1rem !important;
}

.p-3.rounded-3 h6 {
    color: var(--text);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 400;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(59,130,246,0.08);
    background: rgba(255,255,255,0.7);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all .2s;
    backdrop-filter: blur(12px);
}

.mobile-menu-btn:hover {
    border-color: rgba(59,130,246,0.15);
    background: rgba(255,255,255,0.9);
}

.notif-bell {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(59,130,246,0.08);
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text2);
    transition: all .2s;
    backdrop-filter: blur(12px);
}

.notif-bell:hover {
    border-color: rgba(var(--primary-rgb),0.3);
    color: rgba(var(--primary-rgb),1);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
}

.notif-badge:empty,
.notif-badge.hide {
    display: none;
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 340px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(59,130,246,0.1);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(59,130,246,0.15);
    z-index: 1100;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.notif-dropdown.show {
    display: block;
}

.notif-dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(59,130,246,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 13px;
    color: var(--text);
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(59,130,246,0.04);
    font-size: 12px;
    transition: background .2s;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(59,130,246,0.03);
}

.notif-item.unread {
    background: rgba(var(--primary-rgb),0.04);
    border-left: 3px solid rgba(var(--primary-rgb),0.5);
}

.notif-item .notif-title {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.notif-item .notif-msg {
    color: var(--text2);
    white-space: pre-line;
    line-height: 1.4;
}

.notif-item .notif-time {
    color: var(--text3);
    font-size: 10px;
    margin-top: 4px;
}

.notif-empty {
    padding: 30px;
    text-align: center;
    color: var(--text3);
    font-size: 13px;
}

.shimmer-text {
    color: transparent;
    background: linear-gradient(90deg, #64748b, #1e293b, #64748b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.accent {
    color: var(--primary);
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    background: rgba(var(--primary-rgb),0.08);
    border: 1px solid rgba(var(--primary-rgb),0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.5s;
}

.icon-box:hover {
    transform: scale(1.1);
}

.icon-box-lg {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: linear-gradient(to bottom right, var(--primary), rgba(var(--primary-rgb),0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    transition: all 0.5s;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb),0.2);
}

.icon-box-lg:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(var(--primary-rgb),0.3);
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    top: -50%;
    right: -15%;
    z-index: 0;
}

.stats-grid .stat-card {
    animation: fadeUpIn 0.6s var(--ease-smooth, ease-out) both;
}

.stats-grid .stat-card:nth-child(1) { animation-delay: 0s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.08s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.16s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.24s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.32s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: 0.4s; }

.card-ws,
.card {
    animation: fadeUpIn 0.6s var(--ease-smooth, ease-out) both;
    animation-delay: 0.2s;
}

@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .bg-login { padding: 1rem; }
    .login-box { padding: 2rem 1.5rem; border-radius: 1rem; }
    .login-box h2 { font-size: 1.5rem; }
    .login-box .subtitle { font-size: 0.82rem; }
    .field-group input { font-size: 16px; padding: 0.8rem 0.8rem 0.8rem 2.5rem; }
    .btn-submit, .btn-submit-link { padding: 0.85rem; font-size: 0.9rem; }
    .links { font-size: 0.78rem; justify-content: center; text-align: center; }
    .credentials-box { padding: 1rem; }
    .cred-value { font-size: 0.8rem; min-width: auto; width: 100%; padding: 0.5rem 0.7rem; }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        width: 280px;
        z-index: 1050;
        transition: left .3s ease;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);
    }
    .sidebar.open { left: 0; }
    .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 1040; }
    .sidebar-overlay.show { display: block; }
    .main { margin-left: 0; padding: 16px; }
    .page-header { flex-direction: row; gap: 12px; margin-bottom: 20px; }
    .page-title { font-size: 20px; }
    .user-badge { font-size: 11px; padding: 8px 14px; }
    .stat-card { padding: 16px; }
    .stat-value { font-size: 22px; }
    .stat-icon { width: 38px; height: 38px; font-size: 14px; margin-bottom: 10px; }
    .card-header { padding: 14px 16px; flex-direction: column; gap: 10px; align-items: flex-start; }
    .card-body { padding: 16px; }
    .table { font-size: 11px; }
    .table th, .table td { padding: 8px 6px; }
    .btn { font-size: 11px; padding: 8px 12px; }
    .btn-sm { padding: 5px 8px; font-size: 10px; }
    .modal-dialog { margin: 10px; }
    .row.g-3 > [class*='col-'] { flex: 0 0 100%; max-width: 100%; }
    .mobile-menu-btn { display: flex !important; }
    .form-control, .form-select { font-size: 16px; padding: 10px 12px; }
    .notif-dropdown { width: 300px; right: -60px; }
}

@media (max-width: 480px) {
    .main { padding: 12px; }
    .page-title { font-size: 18px; }
    .stat-value { font-size: 20px; }
    .code-box { font-size: 10px; padding: 12px; }
}