/* ============================================
   Hệ thống chấm công - Component styles
   Tách từ style.css để dùng cho layout/page mới
   ============================================ */

.nav-pills .nav-link {
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
    color: var(--app-primary);
    background: rgba(102, 126, 234, 0.08);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-secondary) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.nav-pills .nav-link i {
    margin-right: 4px;
}

.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-logo,
.mapboxgl-ctrl-attrib,
.mapboxgl-ctrl-attrib-inner,
.mapboxgl-ctrl-attrib-button,
a.mapboxgl-ctrl-logo {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.user-marker {
    width: 18px;
    height: 18px;
    background: #4285f4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    animation: userPulse 2s infinite;
}

@keyframes userPulse {
    0% {
        box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(66, 133, 244, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.map-label {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

.map-legend {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.map-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
}

.map-legend .legend-item span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.checkin-map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkin-map-status {
    display: none;
    margin-top: -8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkin-map-status.show {
    display: flex;
}

.checkin-map-status.in-range {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.checkin-map-status.out-range {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.checkin-map-status.pending {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.checkin-map-status i {
    font-size: 1.1rem;
}

.checkin-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 16px 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.checkin-sticky-bar .info-text {
    font-size: 0.8rem;
    color: #868e96;
    text-align: center;
    line-height: 1.3;
}

.checkin-sticky-bar .btn-sticky {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.checkin-sticky-bar .btn-sticky:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.checkin-sticky-bar .btn-sticky:disabled {
    opacity: 0.9;
    cursor: not-allowed;
}

.checkin-sticky-bar .btn-sticky:disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

body.has-sticky-bar {
    padding-bottom: 90px !important;
}

@media (max-width: 767.98px) {
    .checkin-card .header-section {
        padding: 16px 16px;
    }

    .checkin-card .header-section h4 {
        font-size: 1.1rem;
    }

    .wm-line {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .wm-line .wm-addr {
        max-width: 180px !important;
    }

    .checkin-sticky-bar {
        padding: 8px 12px 12px;
    }

    .checkin-sticky-bar .btn-sticky {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    #video-container {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .wm-line .wm-addr {
        max-width: 140px !important;
    }
}
