/* Container & Layout */
.vici-toggle-container { 
    display: flex; 
    gap: 10px; 
    margin: 15px 0; 
    flex-wrap: wrap;
}

/* Action Buttons (Situation Reporting) */
.vici-state-btn { 
    border: none; 
    padding: 18px 10px; 
    border-radius: 12px; 
    cursor: pointer; 
    font-weight: 800; 
    flex: 1; 
    min-width: 120px;
    transition: transform 0.1s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.vici-state-btn:active {
    transform: scale(0.96);
}

/* Category Filters - REFINED PILLS */
.vici-filter-btn { 
    border: 1px solid #ccc; 
    padding: 8px 18px; 
    border-radius: 25px; 
    cursor: pointer; 
    background: #e0e0e0; 
    color: #000000;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
}

.vici-filter-btn.active { 
    background: #000000; 
    color: #ffffff; 
    border-color: #000000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- GLOWING DATA DASHBOARD STYLES --- */

.vici-data-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.vici-progress-wrapper {
    margin-top: 10px;
}

.vici-progress-item {
    margin-bottom: 15px;
}

.vici-bar-label {
    font-size: 0.8rem;
    font-weight: 900;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vici-bar-track {
    height: 12px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* The Pulsating Glowing Fill - Control via Admin Settings */
.vici-bar-fill {
    height: 100%;
    border-radius: 20px;
    background-color: var(--bar-color);
    box-shadow: 0 0 15px var(--bar-color); 
    transition: width 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.vici-bar-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    border-radius: inherit;
    /* DYNAMIC SPEED FOR BARS */
    animation: viciBarPulse var(--vici-bar-speed, 2s) infinite ease-in-out; 
}

@keyframes viciBarPulse {
    0% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
    50% { opacity: 0.7; transform: scaleY(1.4); box-shadow: 0 0 25px var(--bar-color); filter: brightness(1.3); }
    100% { opacity: 1; transform: scaleY(1); filter: brightness(1); }
}

/* --- END DATA STYLES --- */

/* Guest Access Gate Styling */
.vici-guest-gate {
    text-align: center;
    padding: 50px 30px;
    background: #ffffff;
    border: 2px dashed #e0e0e0;
    border-radius: 15px;
    margin: 20px 0;
}

.vici-auth-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Map Marker Styling - Control via Admin Settings */
.vici-dot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vici-dot-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    position: relative;
    z-index: 2;
}

.vici-dot-inner::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* DYNAMIC SPEED FOR DOTS */
    animation: viciPulse var(--vici-dot-speed, 1s) infinite ease-in-out;
    z-index: 1;
}

@keyframes viciPulse {
    0% { box-shadow: 0 0 0 0px var(--pulse-color); opacity: 0.9; }
    50% { box-shadow: 0 0 0 15px var(--pulse-color); opacity: 0.4; } 
    100% { box-shadow: 0 0 0 0px var(--pulse-color); opacity: 0; }
}

/* UI Header Live Indicator - Synced to Dot Speed */
.vici-pulse-indicator {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    display: inline-block;
    animation: viciPulseStatic var(--vici-dot-speed, 1s) infinite;
}

@keyframes viciPulseStatic {
    0% { box-shadow: 0 0 0 0px rgba(255, 0, 0, 0.7); }
    50% { box-shadow: 0 0 0 12px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0px rgba(255, 0, 0, 0); }
}

/* Toast Notifications */
.vici-toast {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 10001;
    transition: bottom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.vici-toast.show {
    bottom: 40px;
}