<<<<<<< HEAD
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.user-info {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.user-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.user-info strong {
    color: #FF9F43;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.modal-tab.active {
    border-bottom-color: #FF9F43;
    color: #FF9F43;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

.modal-tab-content h3 {
    margin-bottom: 15px;
    color: #333;
}

#noteInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
    resize: vertical;
}

.btn-add-note {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.notes-list {
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #FF9F43;
}

.note-text {
    color: #333;
    margin-bottom: 5px;
}

.note-meta {
    font-size: 0.85rem;
    color: #999;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-action {
    font-weight: 600;
    color: #333;
}

.activity-time {
    font-size: 0.85rem;
    color: #999;
}

.activity-device {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.admin-actions {
    text-align: center;
    padding: 20px;
}

.btn-reset-password {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FF6B6B, #FF9F43);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset-password:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.action-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .modal-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}


/* ========================================
   ADMIN PRO STYLES - NÂNG CẤP
   ======================================== */

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-refresh {
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 20px 0 20px;
    padding: 0;
    overflow-x: auto;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Baloo 2', cursive;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #666;
}

.admin-tab:hover {
    color: #667eea;
    background: #f5f5f5;
}

.admin-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

/* Admin Content */
.admin-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.admin-content.active {
    display: block;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-large {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-large.highlight-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.stat-card-large .stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-card-large .stat-value {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    margin: 8px 0;
}

.stat-card-large.highlight-green .stat-value {
    color: #2e7d32;
}

.stat-card-large .stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.stat-card-large .stat-sublabel {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.device-breakdown,
.browser-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.breakdown-bar {
    flex: 1;
    height: 32px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
}

.breakdown-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
    color: #333;
    z-index: 1;
}

/* Online Devices */
.online-devices-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.online-devices-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.online-devices-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.online-device-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-device-icon {
    font-size: 32px;
}

.online-device-info {
    flex: 1;
}

.online-device-name {
    font-weight: 700;
    font-size: 16px;
    color: #2e7d32;
    margin-bottom: 4px;
}

.online-device-details {
    font-size: 13px;
    color: #558b2f;
}

.online-pulse {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Users Filters */
.users-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.users-filters input,
.users-filters select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
}

.users-filters input {
    flex: 1;
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.user-status.online {
    background: #e8f5e9;
    color: #2e7d32;
}

.user-status.offline {
    background: #f5f5f5;
    color: #999;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Devices */
.devices-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.devices-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.device-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 16px;
}

.device-card-icon {
    font-size: 40px;
}

.device-card-info {
    flex: 1;
}

.device-card-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.device-card-details {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Activity */
.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.activity-feed-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-feed-container h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.activity-feed {
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    padding: 16px;
    border-left: 4px solid #667eea;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.activity-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.activity-item-type {
    font-weight: 700;
    color: #667eea;
}

.activity-item-time {
    font-size: 13px;
    color: #999;
}

.activity-item-details {
    font-size: 14px;
    color: #666;
}

/* Timeline */
.timeline-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.timeline-controls select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
}

.btn-calculate-stats {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calculate-stats:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.timeline-chart {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.timeline-chart h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.timeline-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.timeline-table table {
    width: 100%;
    border-collapse: collapse;
}

.timeline-table th,
.timeline-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-table th {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
}

/* Modal Enhancements */
.modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.user-info-card,
.user-stats-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
}

.user-info-card h3,
.user-stats-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #667eea;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .online-devices-list {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        padding: 0 10px;
    }

    .admin-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .user-detail-grid {
        grid-template-columns: 1fr;
    }

    .devices-list {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
=======
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.close-modal:hover {
    color: #333;
}

.user-info {
    background: #f5f7fa;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.user-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.user-info strong {
    color: #FF9F43;
}

.modal-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.modal-tab.active {
    border-bottom-color: #FF9F43;
    color: #FF9F43;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
}

.modal-tab-content h3 {
    margin-bottom: 15px;
    color: #333;
}

#noteInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
    resize: vertical;
}

.btn-add-note {
    padding: 10px 20px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-add-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.notes-list {
    max-height: 300px;
    overflow-y: auto;
}

.note-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #FF9F43;
}

.note-text {
    color: #333;
    margin-bottom: 5px;
}

.note-meta {
    font-size: 0.85rem;
    color: #999;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-action {
    font-weight: 600;
    color: #333;
}

.activity-time {
    font-size: 0.85rem;
    color: #999;
}

.activity-device {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.admin-actions {
    text-align: center;
    padding: 20px;
}

.btn-reset-password {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FF6B6B, #FF9F43);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset-password:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.action-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }

    .modal-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

    .modal-tab {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}


/* ========================================
   ADMIN PRO STYLES - NÂNG CẤP
   ======================================== */

/* Header Actions */
.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-refresh {
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 20px 0 20px;
    padding: 0;
    overflow-x: auto;
    border-bottom: 2px solid #e0e0e0;
}

.admin-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: 'Baloo 2', cursive;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: #666;
}

.admin-tab:hover {
    color: #667eea;
    background: #f5f5f5;
}

.admin-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: transparent;
}

/* Admin Content */
.admin-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.admin-content.active {
    display: block;
}

/* Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-large {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-large.highlight-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
}

.stat-card-large .stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.stat-card-large .stat-value {
    font-size: 42px;
    font-weight: 800;
    color: #667eea;
    margin: 8px 0;
}

.stat-card-large.highlight-green .stat-value {
    color: #2e7d32;
}

.stat-card-large .stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.stat-card-large .stat-sublabel {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.device-breakdown,
.browser-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breakdown-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.breakdown-bar {
    flex: 1;
    height: 32px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 40px;
}

.breakdown-label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
    color: #333;
    z-index: 1;
}

/* Online Devices */
.online-devices-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.online-devices-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.online-devices-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.online-device-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.online-device-icon {
    font-size: 32px;
}

.online-device-info {
    flex: 1;
}

.online-device-name {
    font-weight: 700;
    font-size: 16px;
    color: #2e7d32;
    margin-bottom: 4px;
}

.online-device-details {
    font-size: 13px;
    color: #558b2f;
}

.online-pulse {
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Users Filters */
.users-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.users-filters input,
.users-filters select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
}

.users-filters input {
    flex: 1;
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.user-status.online {
    background: #e8f5e9;
    color: #2e7d32;
}

.user-status.offline {
    background: #f5f5f5;
    color: #999;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Devices */
.devices-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.devices-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.device-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 16px;
}

.device-card-icon {
    font-size: 40px;
}

.device-card-info {
    flex: 1;
}

.device-card-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.device-card-details {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Activity */
.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.activity-feed-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-feed-container h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.activity-feed {
    max-height: 600px;
    overflow-y: auto;
}

.activity-item {
    padding: 16px;
    border-left: 4px solid #667eea;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 12px;
}

.activity-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.activity-item-type {
    font-weight: 700;
    color: #667eea;
}

.activity-item-time {
    font-size: 13px;
    color: #999;
}

.activity-item-details {
    font-size: 14px;
    color: #666;
}

/* Timeline */
.timeline-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.timeline-controls select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
}

.btn-calculate-stats {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Baloo 2', cursive;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calculate-stats:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.timeline-chart {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.timeline-chart h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

.timeline-table-container {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.timeline-table table {
    width: 100%;
    border-collapse: collapse;
}

.timeline-table th,
.timeline-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-table th {
    background: #f5f5f5;
    font-weight: 700;
    color: #333;
}

/* Modal Enhancements */
.modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.user-info-card,
.user-stats-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
}

.user-info-card h3,
.user-stats-card h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #667eea;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .online-devices-list {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        padding: 0 10px;
    }

    .admin-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .user-detail-grid {
        grid-template-columns: 1fr;
    }

    .devices-list {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
>>>>>>> 24c03eda35bab541d2f3fd43d47c2f7b5555ba3f
}