/* Custom CSS styles */

/* Metric cards for channel performance */
.metric-card {
    padding: 1.25rem;
    text-align: center;
    border-radius: 0.5rem;
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-gray-700);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
    border-color: var(--bs-primary);
}

.metric-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--bs-info);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--bs-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Advanced Metrics Card with Gradients */
.advanced-metric-card {
    position: relative;
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
}

.advanced-metric-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

.metric-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Stat Card for Channel Performance */
.stat-card {
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.stat-icon-wrapper {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard layout */
.dashboard-header {
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bs-gray-300);
}

.stats-card {
    transition: all 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.stats-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--bs-gray-600);
}

.stats-value {
    font-size: 1.75rem;
    font-weight: 700;
}

/* Channel detail page */
.channel-header-banner {
    position: relative;
    overflow: hidden;
}

.channel-thumbnail-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.channel-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    transition: transform 0.3s ease;
}

.channel-thumbnail:hover {
    transform: scale(1.05);
}

.channel-thumbnail-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
}

.channel-info {
    flex: 1;
}

.channel-title {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: var(--bs-gray-900);
}

.channel-stat {
    padding: 0.5rem 0;
}

.stat-icon-bg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.1rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manager-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: var(--bs-info);
    color: white;
    font-size: 0.85rem;
}

/* Video list styling */
.video-thumbnail {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.video-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* Dashboard video title styling */
.dashboard-video-title {
    display: block;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    word-break: break-word;
    max-width: 100%;
}

.video-meta {
    font-size: 0.85rem;
    color: var(--bs-gray-600);
}

/* Tag styling */
.tag-pill {
    display: inline-block;
    background-color: var(--bs-light);
    color: var(--bs-gray-700);
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Manager assignment */
.manager-select-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bs-light);
    border-radius: 0.5rem;
}

/* Manager display */
.managers-list {
    max-height: 400px;
    overflow-y: auto;
}

.manager-item {
    transition: all 0.2s ease;
}

.manager-item:hover {
    transform: translateX(5px);
    background-color: rgba(var(--bs-info-rgb), 0.1) !important;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: var(--bs-info);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Statistics Badges */
.stat-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background-color: var(--bs-light);
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    color: var(--bs-dark); /* Explicitly set text color to dark */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .channel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .channel-thumbnail {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
        margin-bottom: 0.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* DataTables customization */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info, 
.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* Animation for loading */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Custom colors */
.text-purple {
    color: #6f42c1 !important;
}

/* Modern Dashboard Styles */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.dropdown-item:hover .fas,
.dropdown-item:focus .fas {
    transform: scale(1.1);
}
