/* ==========================================================================
   User Dashboard & Library Component Styles
   ========================================================================== */

/* User Sidebar Navigation */
.sidebar-header {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-light);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
    background: var(--bg-hover);
}

.nav-link.active {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-upgrade-box {
    margin: 14px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-lg);
    text-align: center;
}

.sidebar-upgrade-box h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary);
}

.sidebar-upgrade-box p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* User Card Widget (Right Side in Mockup) */
.user-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.user-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    margin: 0 auto 12px;
    border: 3px solid var(--primary-light);
    object-fit: cover;
}

.user-card-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.user-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    background: var(--primary-light);
    color: var(--primary);
    margin-top: 4px;
    margin-bottom: 20px;
}

.usage-meter {
    text-align: left;
    margin-bottom: 14px;
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.meter-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

.premium-perks-box {
    background: #0f172a;
    color: white;
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .premium-perks-box {
    background: #131b2e;
    border: 1px solid var(--border-color);
}

.perks-list {
    margin: 16px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.perks-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
}

.perks-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Recent Downloads Media List */
.media-row-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.media-row-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.media-thumb-wrapper {
    width: 100px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #000;
}

.media-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-duration-tag {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.media-info-block {
    flex: 1;
    min-width: 0;
}

.media-title-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.media-sub-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.media-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
