/* Dashboard header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.dashboard-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.dashboard-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.stats-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

a.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.user-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.user-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }

    .stats-cards {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero search styling */
.search-hero-container .input-group {
    border-radius: 0.75rem;
    overflow: hidden;
}

.search-hero-container .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Quick actions */
.quick-action-btn {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Activity feed */
.activity-item {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.activity-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.activity-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.activity-placeholder {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar widgets */
.sidebar-widget {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.collection-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.collection-item:last-child {
    border-bottom: none;
}

.collection-item:hover {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-ready {
    background: #d4edda;
    color: #155724;
}

.status-uploading {
    background: #cfe2ff;
    color: #084298;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-transcribing {
    background: #e2e3e5;
    color: #41464b;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.status-compressed {
    background: #d1ecf1;
    color: #055160;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 1rem;
    margin: 2rem 0;
}

.empty-state-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Upload Limit Banner */
.upload-limit-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    padding: 1rem 0;
    border-bottom: 1px solid #fbbf24;
}

.upload-limit-banner .banner-icon {
    font-size: 1.5rem;
    background: #fbbf24;
    color: #78350f;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-limit-banner strong {
    color: #78350f;
}

.upload-limit-banner .small {
    color: #92400e;
}

.upload-limit-banner a.text-warning {
    color: #b45309 !important;
    text-decoration: underline;
    font-weight: 600;
}

.upload-limit-banner a.text-warning:hover {
    color: #92400e !important;
}

.upload-limit-banner .btn-warning {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
    font-weight: 600;
}

.upload-limit-banner .btn-warning:hover {
    background: #d97706;
    border-color: #d97706;
    color: white;
}

.upload-limit-banner .btn-outline-light {
    border-color: #d97706;
    color: #92400e;
}

.upload-limit-banner .btn-outline-light:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.upload-limit-banner .btn-close {
    filter: none;
    opacity: 0.6;
}

.upload-limit-banner .btn-close:hover {
    opacity: 1;
}

/* Video Usage Progress Bar */
.usage-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.usage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.usage-limit-alert {
    background: #fef3c7;
    color: #78350f;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #fbbf24;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.usage-limit-alert i {
    color: #d97706;
    margin-top: 0.15rem;
}

.usage-limit-alert .upgrade-link {
    color: #b45309;
    text-decoration: underline;
    font-weight: 600;
}

.usage-limit-alert .upgrade-link:hover {
    color: #92400e;
}

.video-usage-limit-reached .btn-upgrade {
    background: #f59e0b;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.video-usage-limit-reached .btn-upgrade:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
    .upload-limit-banner .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .upload-limit-banner .banner-icon {
        margin: 0 auto 0.5rem;
    }
}

/* Training Profile Banner */
.training-profile-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    padding: 1rem 0;
    border-bottom: 1px solid #60a5fa;
}

.training-profile-banner .banner-icon {
    font-size: 1.5rem;
    background: #3b82f6;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.training-profile-banner strong {
    color: #1e3a8a;
}

.training-profile-banner .small {
    color: #1e40af;
}

.training-profile-banner .highlight {
    color: #1d4ed8;
    font-weight: 600;
}

.training-profile-banner .btn-primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.training-profile-banner .btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.training-profile-banner .btn-outline-light {
    border-color: #2563eb;
    color: #1e40af;
}

.training-profile-banner .btn-outline-light:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.training-profile-banner .btn-close {
    filter: none;
    opacity: 0.6;
}

.training-profile-banner .btn-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .training-profile-banner .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .training-profile-banner .banner-icon {
        margin: 0 auto 0.5rem;
    }
}
