/**
 * vici-style.css
 * VICICHAT CORE UI STYLING (Attendance & Vicinity Board Edition)
 * Aesthetic: Deep Ocean Glassmorphism / Professional Tech
 * Version: 5.3.0 - Integrated Content Shield Architecture
 * Project: Vicilook Ecosystem
 */

/* ==========================================================================
   VICILOOK CONTENT SHIELD DEFENSE BOUNDARIES
   ========================================================================== */

/* Prevent structural layout text and metric highlight scraping */
body, 
#vici-app-container, 
.vici-glass-card,
.vcm-popup-container {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+/Edge */
    user-select: none;          /* Standard UI Engine rule */
}

/* Permit input fields to still capture keyboard selection context naturally */
input, 
textarea, 
.vici-input {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Pure image layer protection against dragging and long-press menus */
img, 
.vici-main-logo {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* Disables long-press context popups on mobile */
}

/* ==========================================================================
   CORE APPLICATION THEME RULES
   ========================================================================== */

:root {
    --vici-bg: #000428;
    --vici-gradient: linear-gradient(135deg, #000428, #004e92, #002f4b);
    --vici-purple: #0081a7; 
    --vici-neon: #00d2ff; 
    --vici-neon-rgb: 0, 210, 255; 
    --vici-success: #00ff88;
    --vici-error: #ff7675;
    --vici-glass: rgba(255, 255, 255, 0.05); 
    --vici-glass-border: rgba(255, 255, 255, 0.12);
    --vici-transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

#vici-app-container {
    font-family: 'Inter', sans-serif;
    background: var(--vici-gradient);
    min-height: 600px;
    padding: 30px;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* --- PHASE 1: BRANDING & GATEWAY --- */
.vici-gateway-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.vici-main-logo {
    display: block;
    max-width: 180px;
    margin: 10px auto 50px auto;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.4));
}

.vici-gateway-container p, 
.vici-gateway-container .vici-instruction-text {
    text-align: center !important;
    width: 100%;
    margin: 20px auto;
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* --- GLOBE CORE & ANIMATIONS --- */
.vici-css-globe {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle at 30% 30%, var(--vici-neon), var(--vici-purple)) !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.3) !important;
    position: relative !important;
    transition: var(--vici-transition);
}

.vici-spinner {
    width: 100% !important;
    height: 100% !important;
    animation: viciRotate 20s linear infinite !important;
}

@keyframes viciRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#vici-trigger-gps.vici-glow-active {
    box-shadow: 0 0 50px var(--vici-neon), 0 0 100px var(--vici-purple) !important;
    animation: viciNeonBloom 1.2s ease-in-out infinite alternate !important;
}

@keyframes viciNeonBloom {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* --- GLASSMORPHISM COMPONENTS --- */
.vici-glass-card {
    background: var(--vici-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--vici-glass-border);
    border-radius: 30px;
    padding: 30px;
    margin: 15px auto;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* --- PHASE 4: ATTENDANCE (SOLID BUTTON ARCHITECTURE) --- */
.vici-attendance-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 15px;
}

.vici-btn-attendance {
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    outline: none;
    width: 100% !important;
    max-width: 280px !important; 
    margin: 0 auto !important;
    display: block !important;
    padding: 18px 30px;
    border-radius: 15px;
    font-weight: 800;
    border: none; /* Forces Solid State */
    color: #fff;
    transition: var(--vici-transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Clock-In Solid (Neon Blue) */
#vici-clock-in {
    background: var(--vici-purple);
}

#vici-clock-in:hover {
    background: var(--vici-neon);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
    transform: translateY(-2px);
}

/* Clock-Out Solid (Muted Red/Glass Blend) */
#vici-clock-out {
    background: #4a0000; /* Deep red for warning */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#vici-clock-out:hover {
    background: var(--vici-error);
    box-shadow: 0 0 25px rgba(255, 118, 117, 0.4);
    transform: translateY(-2px);
}

.vici-btn-attendance:active { transform: scale(0.95); }

#vici-geo-status {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex !important; 
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 210, 255, 0.2);
    margin: 0 auto 10px auto !important;
}

/* --- INPUTS & BUTTONS --- */
.vici-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--vici-glass-border);
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    box-sizing: border-box;
}

/* SURGICAL REMOVAL: Optional Shift Note/Status Box */
#vici-shift-note, 
textarea.vici-input[placeholder*="Optional: shift note"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

.vici-btn-primary {
    background: var(--vici-purple);
    color: white;
    padding: 15px 40px;
    border-radius: 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* --- PERSONA / CAMERA --- */
.vici-camera-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 4px solid var(--vici-purple);
    overflow: hidden;
    background: #000;
    position: relative;
}

/* --- UTILITY --- */
.vici-fade-in { animation: viciFadeIn 0.5s forwards; }
@keyframes viciFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vici-hidden { display: none !important; }

@media (max-width: 600px) {
    #vici-app-container { padding: 15px; } 
    .vici-btn-attendance { 
        max-width: 240px !important; 
        font-size: 18px !important; 
    }
}