.video-modal-trigger {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-close-video-modal-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.258);
    color: var(--theme-color);
    font-size: 24px;
    cursor: pointer;
}

.btn-close-video-modal-trigger i {
    font-size: 32px;
    background-color: #fff;
    border-radius: 50%;
}

.btn-close-video-modal-trigger:hover i {
    color: var(--theme-color);
}

.thum-video {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.analytics-stats-section {
    padding: 20px 0;
    margin: 40px 0;
}

.analytics-stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.analytics-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, var(--theme-color), #28a745);
}

.active-users::before {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.total-users::before {
    background: linear-gradient(45deg, #007bff, #6610f2);
}

.document-downloads::before {
    background: linear-gradient(45deg, #6f42c1, #e83e8c);
}

.shared-documents::before {
    background: linear-gradient(45deg, #fd7e14, #dc3545);
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--theme-color-rgb), 0.1);
    color: var(--theme-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.active-users .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.total-users .stat-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.document-downloads .stat-icon {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.shared-documents .stat-icon {
    background: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-description {
    font-size: 0.875rem;
    color: #95a5a6;
}

.stat-indicator {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    margin-right: 8px;
}

.indicator-dot.active {
    background: #28a745;
    animation: pulse 2s infinite;
}

.indicator-text {
    color: #6c757d;
    font-weight: 500;
}

.analytics-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 10px;
}

.analytics-updated {
    background-color: #4ade80 !important;
    color: white !important;
    display: inline-block;
    transition: all 0.3s ease;
}

.analytics-refreshing {
    position: relative;
    overflow: hidden;
}

.analytics-refreshing::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(74, 222, 128, 0.2),
        transparent
    );
    animation: analytics-sweep 0.5s ease-in-out;
}

@keyframes analytics-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.analytics-status {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.analytics-status.online {
    color: #10b981;
}

.analytics-status.offline {
    color: #ef4444;
}

.analytics-status.online {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.analytics-status i {
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.analytics-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.analytics-footer .fas.fa-sync-alt {
    margin-right: 5px;
    color: var(--theme-color);
}

@media (max-width: 768px) {
    .analytics-stats-section {
        padding: 40px 0;
    }

    .analytics-stat-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}
