﻿:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    --accent-color: #4f46e5 !important;
    --accent-hover: #4338ca !important;
    --text-primary: #1f2937 !important;
    --text-secondary: #6b7280 !important;
    --text-light: #9ca3af !important;
    --bg-white: #ffffff !important;
    --bg-gray: #ecf0f5 !important;
    --bg-light: #f3f4f6 !important;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05) !important;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
    --border-radius: 12px !important;
    --border-radius-lg: 16px !important;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #64748b;
    --success: #10b981;
    --info: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: black;
    --gray-light: #e2e8f0;
    --gray-dark: #475569;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(10px);
    --dark-primary: #818cf8;
    --dark-secondary: #94a3b8;
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-text: #f8fafc;
    --dark-border: #334155;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --top-navbar-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ultra-compact-form {
    --uc-primary: #4361ee;
    --uc-border: #b1aaaa;
    --uc-error: #dc3545;
    --uc-text: #333;
    --uc-label: #555;
    --uc-bg: #fff;
    --uc-hover: #f5f5f5;
    --uc-radius: 4px;
    --uc-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-size: 0.75rem; /* smaller for compact form */
}
body {
    background-color: var(--bg-gray) !important;
   
}
#components-reconnect-modal {
    display: none;
}

.components-reconnect-hide > #components-reconnect-modal {
    display: none;
}

.components-reconnect-show > #components-reconnect-modal {
    display: block;
}

.components-reconnect-failed > #components-reconnect-modal {
    display: block;
}

.components-reconnect-rejected > #components-reconnect-modal {
    display: block;
}

.reconnecting {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.3s ease-out;
}
.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}
[b-uy2foibxu9] table tr td {
    width: 100px !important;
}
.dropdown-menu[data-bs-popper] {
    top: 100%;
    margin-top: var(--bs-dropdown-spacer);
    right: 10px !important;
}
.quickgrid .column {
    padding: 0 !important;
}

/* Adjust column margins */
.quickgrid .column {
    margin: 0 !important; /* Remove margin */
}
.scrollable-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    position: relative;
}

.table th, .table td {
    text-align: left;
    white-space: nowrap; /* Prevent text wrapping */
}

    .table th:last-child, .table td:last-child {
        background-color: #f8f9fa; /* Optional: Highlight the sticky column */
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow for visual separation */
    }
.my-table td, .my-table th {
    padding: 0; /* Removes padding */
    margin: 0; /* Removes margin */
}
.custom-select {
    appearance: none;
    background-color: #f9fafb; /* Light gray background */
    border: 1px solid #d1d5db; /* Border color */
    border-radius: 8px; /* Rounded corners */
    padding: 8px 16px;
    font-size: 1rem;
    color: #374151; /* Text color */
    transition: all 0.3s ease-in-out;
    outline: none;
    cursor: pointer;
    width: auto;
}


@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}
    .custom-select::after {
        content: '▼';
        position: absolute;
        right: 10px;
        pointer-events: none;
    }

    /* Hover and focus effects */
    .custom-select:hover {
        background-color: #e5e7eb;
        border-color: #9ca3af; 
    }

    .custom-select:focus {
        background-color: #fff;
        border-color: #2563eb; 
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
    }

    /* Option styles */
    .custom-select option {
        background-color: #f9fafb; 
        color: #374151; 
        padding: 8px;
    }

        /* Selected option style */
        .custom-select option:checked {
            background-color: #2563eb; 
            color: #fff;
        }

    .custom-select::-ms-expand {
        display: none; 
    }
.quickgrid {
    border-spacing: 0 !important; /* Remove spacing between cells */
}

[b-uy2foibxu9] table tr td {
    width: auto !important; /* Override any previous width settings */
}

.nav-link {
    color: inherit !important; /* Inherit the color from the parent element */
}

    .nav-link:hover {
        color: white !important; /* Inherit the color from the parent element */
        background-color: var(--accent-color) !important;
    }

    .nav-link.active {
        color: white !important; /* Ensure active link also inherits the color */
        background-color: var(--accent-color) !important;
    }

.tooltip1 {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

    .tooltip1 .tooltiptext {
        visibility: hidden;
        min-width: 150px;
        background-color: #141b2d;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 7px;
        /* Position the tooltip */
        position: absolute;
        z-index: 1;
        bottom: 100%;
        left: 50%;
        margin-left: -60px;
        margin-bottom: 10px;
        text-overflow: ellipsis;
    }
    .tooltip1 .tooltiptextBottom {
        visibility: hidden;
        min-width: 120px;
        background-color: #141b2d;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 7px;
        /* Position the tooltip */
        position: absolute;
        z-index: 1;
        bottom: 0px;
        left: 50%;
        margin-left: -60px;
        margin-bottom: 10px;
        text-overflow:ellipsis;
    }
    .tooltip1:hover .tooltiptextBottom {
        visibility: visible;
    }
    .tooltip1:hover .tooltiptext {
        visibility: visible;
    }
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #e0e0e0;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.linkStyle {
    color: white !important;
    text-decoration: none;
    padding: 4px 6px 6px 4px !important;
    border: 1px solid #FFCC00;
    border-radius: 5px;
}

.center-loader {
    margin-left: auto;
    margin-right: auto;
    padding: 150px 0;
    z-index: 100;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    background-color: black;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 13px;
        height: 13px;
        border-radius: 50%;
        background: #4CAF50;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
        background-color: red;
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }


/* Button Loader */
.lds-dual-ring {
    display: inline-block;
    width: 16px;
    height: 16px;
}

    .lds-dual-ring:after {
        content: ' ';
        display: block;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 3px solid #fff;
        border-color: #fff transparent #fff transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }


@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

::deep tbody tr {
    width: 150px,
    /* background-color: rgba(0,0,0,0.04); */
}

.form-control input[type="text"]:focus {
    outline: none;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
}
:root {
    --primary-color: #4f8a8b;
    --primary-dark: #3a6c6d;
    --secondary-color: #fbd46d;
    --dark-color: #2c3e50;
    --light-color: #f9f9f9;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-300: #e2e8f0;
    --gray-400: #cbd5e0;
    --gray-500: #a0aec0;
    --gray-600: #718096;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
}

.alert {
    @apply p-4 mb-4 rounded-lg;
}

.alert-success {
    @apply bg-green-100 text-green-700 border border-green-400;
}

.alert-danger {
    @apply bg-red-100 text-red-700 border border-red-400;
}

.btn {
    @apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.btn-primary {
    @apply bg-primary text-white hover:bg-primary-dark focus:ring-primary;
}

.btn-secondary {
    @apply bg-secondary text-dark hover:bg-yellow-500 focus:ring-secondary;
}

.btn-danger {
    @apply bg-red-500 text-white hover:bg-red-600 focus:ring-red-500;
}

.table-container {
    @apply overflow-x-auto shadow-md rounded-lg;
}

.table {
    @apply min-w-full divide-y divide-gray-200;
}

    .table th {
        @apply px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
    }

    .table td {
        @apply px-6 py-4 whitespace-nowrap text-sm text-gray-500;
    }

    .table tr:nth-child(even) {
        @apply bg-gray-50;
    }

    .table tr:hover {
        @apply bg-gray-100;
    }

.pagination {
    @apply flex items-center justify-between px-4 py-3 bg-white border-t border-gray-200 sm:px-6;
}

.pagination-button {
    @apply relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50;
}

.pagination-button-active {
    @apply z-10 bg-primary border-primary text-white;
}

.dropdown {
    @apply origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none;
}

.modal-overlay {
    @apply fixed inset-0 bg-gray-600 bg-opacity-75 overflow-y-auto h-full w-full;
}

.modal {
    @apply relative top-20 mx-auto p-5 border w-11/12 md:w-2/3 lg:w-1/2 shadow-lg rounded-md bg-white;
}

.tooltip {
    @apply absolute invisible bg-gray-800 text-white text-center py-1 px-2 rounded-lg z-50;
}

.tooltip-container:hover .tooltip {
    @apply visible;
}

.loading-spinner {
    @apply animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary;
}

.empty-state {
    @apply flex flex-col items-center justify-center p-12 text-center;
}

.alert {
    @apply p-4 mb-4 rounded-lg border;
}

.alert-success {
    @apply bg-green-100 text-green-700 border-green-400;
}

.alert-danger {
    @apply bg-red-100 text-red-700 border-red-400;
}

.btn {
    @apply px-4 py-2 rounded-lg font-medium transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
}

.btn-primary {
    @apply bg-primary text-white hover:bg-primary-dark focus:ring-primary;
}

.btn-secondary {
    @apply bg-secondary text-dark hover:bg-yellow-500 focus:ring-secondary;
}

.btn-danger {
    @apply bg-red-500 text-white hover:bg-red-600 focus:ring-red-500;
}

.table-container {
    @apply overflow-x-auto shadow-md rounded-lg;
}

.table {
    @apply min-w-full divide-y divide-gray-200;
}

    .table th {
        @apply px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
    }

    .table td {
        @apply px-6 py-4 whitespace-nowrap text-sm text-gray-500;
    }

    .table tr:nth-child(even) {
        @apply bg-gray-50;
    }

    .table tr:hover {
        @apply bg-gray-100;
    }

.pagination {
    @apply flex items-center justify-between px-4 py-3 bg-white border-t border-gray-200 sm:px-6;
}

.pagination-button {
    @apply relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50;
}

.pagination-button-active {
    @apply z-10 bg-primary border-primary text-white;
}

.dropdown {
    @apply origin-top-right absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none;
}

.modal-overlay {
    @apply fixed inset-0 bg-gray-600 bg-opacity-75 overflow-y-auto h-full w-full;
}

.modal {
    @apply relative top-20 mx-auto p-5 border w-11/12 md:w-2/3 lg:w-1/2 shadow-lg rounded-md bg-white;
}

.tooltip {
    @apply absolute invisible bg-gray-800 text-white text-center py-1 px-2 rounded-lg z-50;
}

.tooltip-container:hover .tooltip {
    @apply visible;
}

.loading-spinner {
    @apply animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-primary;
}

.empty-state {
    @apply flex flex-col items-center justify-center p-12 text-center;
}

.scrollbar-custom::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 2px;
}

.scrollbar-custom::-webkit-scrollbar-track {
    background-color: #f1f5f9;
}

.form-header {
    margin-bottom: 2rem;
}

.form-title {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.title-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--primary-color), #7209b7);
    border-radius: 2px;
}

.grid-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

    .grid-container ::deep table {
        width: 100%;
        border-collapse: collapse;
    }

    .grid-container ::deep .table-actions {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        margin-bottom: 1rem;
    }

    .grid-container ::deep .pagination {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        gap: 0.5rem;
    }
.user-map-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--dark);
}

.map-header {
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    font-size: 2rem;
}

.user-details .username {
    font-weight: 600;
    font-size: 1.1rem;
}

.user-role {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

    .user-role.admin {
        background: var(--error);
    }

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-admin {
    background: var(--error);
    color: white;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.map-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.sidebar {
    width: 350px;
    background: var(--dark-light);
    border-right: 1px solid var(--border);
}

.sidebar-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--border) 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.card-content {
    padding: 0.05rem;
}

.location-details, .user-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.value {
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-online {
    color: var(--success);
}

.no-location {
    text-align: center;
    padding: 1rem 0.5rem;
    color: var(--text-muted);
}

    .no-location i {
        font-size: 0.6rem !important;
        /*margin-bottom: 1rem;*/
        opacity: 0.5;
    }

.hint {
    font-size: 0.8rem;
    opacity: 0.7;
}

.map-wrapper {
    flex: 1;
    position: relative;
}

.modern-map, .admin-map {
    width: 100%;
    height: 100%;
    background: var(--dark-light);
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    text-align: center;
    color: var(--text);
}

    .loading-spinner i {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: var(--primary);
    }

    .loading-spinner p {
        margin: 0;
        font-size: 1rem;
        font-weight: 500;
    }

/* Toast Styles */
.toast {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

    .toast.success {
        border-left: 4px solid var(--success);
    }

    .toast.error {
        border-left: 4px solid var(--error);
    }

    .toast.warning {
        border-left: 4px solid var(--warning);
    }

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    color: var(--text);
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

    .toast-close:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text);
    }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Dashboard Styles */
.admin-dashboard {
    min-height: 100vh !important;
    background: var(--dark);
    overflow-y: auto;
}

.admin-header {
    background: var(--dark-light);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-name {
    font-weight: 600;
}

.btn-back {
    background: var(--dark-lighter);
    color: var(--text);
    border: 1px solid var(--border);
}

.admin-content {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

    .stat-icon.total-users {
        background: var(--primary);
    }

    .stat-icon.online-users {
        background: var(--success);
    }

    .stat-icon.locations-tracked {
        background: var(--warning);
    }

    .stat-icon.active-now {
        background: var(--error);
    }

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-main {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.users-panel, .map-panel {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.panel-header {
    background: var(--dark-lighter);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h3 {
        margin: 0;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.view-controls, .map-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn, .btn-sm {
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .view-btn.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

.users-list {
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-card {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .user-card:hover {
        border-color: var(--primary);
        transform: translateY(-1px);
    }

    .user-card.online {
        border-left: 4px solid var(--success);
    }

    .user-card.offline {
        border-left: 4px solid var(--text-muted);
    }

.user-avatar {
    font-size: 1.5rem;
}

.user-info {
    flex: 1;
}

.user-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.username {
    font-weight: 600;
}

.user-role {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
}

    .user-role.admin {
        background: var(--error);
    }

.user-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .status.online {
        color: var(--success);
    }

    .status.offline {
        color: var(--text-muted);
    }

.last-active {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.user-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.user-actions {
    display: flex;
    gap: 0.25rem;
}

.action-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 25px;
    height: 25px;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .action-btn:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

.activity-panel {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.activity-list {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-avatar {
    font-size: 1.25rem;
}

.activity-details {
    flex: 1;
}

.activity-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.activity-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accuracy {
    background: var(--dark-lighter);
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.7rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
    }

    .users-panel {
        order: 2;
    }

    .map-panel {
        order: 1;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        height: 100%;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Custom Leaflet Styles */
:deep(.leaflet-container) {
    background: var(--dark-light);
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:deep(.leaflet-popup-content-wrapper) {
    background: var(--dark-light);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

:deep(.leaflet-popup-content) {
    color: var(--text);
    font-size: 0.875rem;
    margin: 12px 16px;
}

:deep(.leaflet-popup-tip) {
    background: var(--dark-light);
    border: 1px solid var(--border);
}

:deep(.custom-user-icon) {
    background: none !important;
    border: none !important;
}
.admin-dashboard {
    min-height: 100vh !important;
    display: flex;
    flex-direction: column;
    background: #0f172a;
    overflow: hidden;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    overflow: hidden;
}

.dashboard-main {
    flex: 1;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 1.5rem;
    height: calc(100vh - 200px);
    min-height: 500px;
}

.users-panel {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-panel {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-map {
    flex: 1;
    width: 100%;
    min-height: 400px;
    border-radius: 0 0 1rem 1rem;
}

/* Ensure Leaflet map container fills the space */
:deep(#adminMap) {
    height: 100% !important;
    width: 100% !important;
}

:deep(.leaflet-container) {
    height: 100% !important;
    width: 100% !important;
    border-radius: 0 0 1rem 1rem;
}

/* Users list scrolling */
.users-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Panel headers */
.panel-header {
    background: #334155;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h3 {
        margin: 0;
        font-size: 1rem;
        color: #f1f5f9;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

/* Statistics grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
    }

    .users-panel {
        order: 2;
    }

    .map-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        grid-template-rows: 250px 1fr;
    }

    .admin-content {
        padding: 0.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.marker-base {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #28a745;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    transform: scale(1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .marker-base i {
        color: #28a745;
        font-size: 14px;
    }

    .marker-base.start:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    .marker-base i {
        color: #dc3545;
        font-size: 14px;
    }

    .marker-base.end:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    }
/* 🌍 Common marker base */
.marker-gradient {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
}

    /* 🟢 Start Marker (Green / Blue Gradient) */
    .marker-gradient.start {
        background: linear-gradient(135deg, #00b09b, #96c93d);
    }

        .marker-gradient.start i {
            color: white;
        }

    /* 🔴 End Marker (Red / Orange Gradient) */
    .marker-gradient.end {
        background: linear-gradient(135deg, #ff3b30, #ff7b60);
    }

        .marker-gradient.end i {
            color: white;
        }

    /* ✨ Hover Effect */
    .marker-gradient:hover {
        transform: scale(1.15);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    }

    /* 💫 Optional Pulse Animation (for focus / active marker) */
    .marker-gradient.start::after,
    .marker-gradient.end::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        top: 0;
        left: 0;
        z-index: -1;
        animation: pulse 2s infinite;
    }

    /* Different pulse colors for start/end */
    .marker-gradient.start::after {
        border: 2px solid rgba(0, 200, 83, 0.4);
    }

    .marker-gradient.end::after {
        border: 2px solid rgba(255, 59, 48, 0.4);
    }

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}
.marker-pin.end {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ff3b30, #ff7b60);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
    position: relative;
}

    .marker-pin.end::after {
        content: '';
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 6px;
        left: 6px;
    }

.ql-toolbar button svg {
    display: inline-block;
}

.ql-toolbar .ql-picker {
    color: #333;
}

.ql-toolbar.ql-snow {
    border-color: #d1d5db; /* match Tailwind gray-300 */
}