/* Centralized List Pages CSS - PREMIUM EDITION */
/* Variables provided globally by LgLayout.razor (var(--primary-color), etc.) */

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.ls-1 {
    letter-spacing: 0.5px;
}

.x-small {
    font-size: 0.75rem;
}

.fw-800 {
    font-weight: 800;
}

/* Global Focus & Input Override */
.btn:focus,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 1px white, 0 0 0 3px color-mix(in srgb, var(--primary-color), transparent 70%) !important;
    border-color: var(--primary-color) !important;
    outline: none !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Premium Wrapper */
.premium-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
    font-family: var(--font-family);
}

/* Premium Buttons - Theme Sync'd */
.premium-btn {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color), transparent 60%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.premium-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-color), transparent 50%);
    filter: brightness(1.1);
    color: white !important;
}

.premium-btn-outline {
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 700;
    background: white !important;
    border: 2px solid #edf2f7 !important;
    color: #475569 !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.premium-btn-outline:hover,
.premium-btn-outline:focus,
.premium-btn-outline:active {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: color-mix(in srgb, var(--primary-color), transparent 96%) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color), transparent 85%);
}

/* Glass Cards & Layout */
.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-premium) !important;
}

/* Premium Header Background */
.premium-header-bg {
    height: 120px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.15;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    z-index: 0;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* Premium Channel Cards */
.premium-channel-card {
    position: relative;
    height: 100%;
    min-height: 185px;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.premium-channel-card:hover:not(.is-locked) {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--primary-color), transparent 50%);
}

.card-glass-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(8px);
    z-index: -1;
}

.card-gradient-flare {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    opacity: 0.08;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -2;
    border-radius: 50%;
}

.premium-channel-card:hover:not(.is-locked) .card-gradient-flare {
    opacity: 0.18;
    transform: scale(1.15) translate(-10%, -10%);
}

.card-content-wrapper {
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.channel-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    position: relative;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

.icon-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: inherit;
    opacity: 0.2;
    animation: pulseTranslate 2.5s infinite;
}

@keyframes pulseTranslate {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.25);
        opacity: 0;
    }

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

.channel-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.channel-status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    background: rgba(241, 245, 249, 0.8);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.go-arrow {
    color: var(--primary-color);
    font-size: 1.4rem;
    transition: all 0.3s;
    opacity: 0.8;
}

.premium-channel-card:hover:not(.is-locked) .go-arrow {
    transform: translateX(5px);
    opacity: 1;
}

.bg-deco-icon {
    position: absolute;
    bottom: -25px;
    right: -15px;
    font-size: 9rem;
    opacity: 0.04;
    color: black;
    transform: rotate(-15deg);
    z-index: 0;
    transition: all 0.6s ease;
}

.premium-channel-card:hover:not(.is-locked) .bg-deco-icon {
    transform: rotate(-5deg) scale(1.1);
    opacity: 0.07;
}

/* Premium Cards - Iconic Grid Pattern */
.premium-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.card-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    margin-bottom: 16px;
}

.premium-card:hover .card-icon-modern {
    transform: scale(1.1) rotate(-5deg);
}

/* Compact List Items */
.compact-list-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.compact-list-item:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
    transform: translateX(4px);
}

/* Status Dot/Indicator */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-indicator.inactive {
    background: #cbd5e1;
}

/* Status Badge Positioning */
.status-badge-wrapper {
    position: relative;
    display: inline-block;
}

.status-badge-wrapper .status-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border: 2.5px solid white;
    z-index: 10;
}



/* Stat Cards & Analytics Overview */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.stat-icon.sm {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 10px;
}

.stat-icon.xs {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
}

.stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2px;
}

/* Mini Stat Cards (specifically for Detail Pages) */
.stat-card-mini {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    transition: all 0.3s;
    height: 100%;
}

.stat-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.stat-icon-mini {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* Status Badges & Chips */
.bg-success-soft {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.bg-primary-soft {
    background: color-mix(in srgb, var(--primary-color), transparent 90%) !important;
    color: var(--primary-color) !important;
    border: 1px solid color-mix(in srgb, var(--primary-color), transparent 85%);
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #d97706 !important;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.active-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.is-locked {
    filter: grayscale(1);
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Animation Utils */
.animate-fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
}