/* Sidebar Styles for Unified Dashboard */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px); /* Account for header */
    background: linear-gradient(135deg, #f5f7fa 0%, #e5e4e2 100%);
}

.sidebar {
    width: 320px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: calc(100vh - 80px);
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Profile Section */
.profile-section {
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-section:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.profile-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    margin: 0 auto 0.5rem;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.profile-tier {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    color: #2c3e50;
}

/* Tier-specific styling to match navbar */
.profile-tier.silver {
    background: linear-gradient(135deg, #C0C0C0 0%, #E8E8E8 100%);
}

.profile-tier.gold {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
}

.profile-tier.platinum {
    background: linear-gradient(135deg, #E5E4E2 0%, #B4B4B4 100%);
    position: relative;
    overflow: hidden;
}

.profile-tier.platinum::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.profile-date {
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}

.membership-status {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.membership-status h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tier-status {
    display: flex;
    align-items: center;
    margin: 0.3rem 0;
    font-size: 0.85rem;
}

.tier-status .status-icon {
    margin-right: 0.5rem;
}

.quick-actions {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.quick-actions h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.quick-action-btn {
    display: block;
    width: 100%;
    padding: 0.5rem;
    margin: 0.3rem 0;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.3s ease;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Navigation Menu */
.nav-menu {
    padding: 1rem 0;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-section-title {
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item {
    display: block;
    padding: 0.8rem 2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f8f9fa;
    border-left-color: #1e3c72;
    color: #1e3c72;
}

.nav-item.active {
    background: #e3f2fd;
    border-left-color: #1e3c72;
    color: #1e3c72;
    font-weight: 500;
}

.nav-item .nav-icon {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.nav-subitem {
    padding: 0.5rem 2rem 0.5rem 3rem;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.nav-subitem:hover {
    background: #f8f9fa;
    color: #1e3c72;
}

.nav-subitem.active {
    background: #f0f8ff;
    color: #1e3c72;
    font-weight: 500;
}

/* Content Display */
.content-display {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1e3c72;
}

.content-title {
    color: #1e3c72;
    margin: 0;
    font-size: 1.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.content-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.content-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Tier-specific colors */
.tier-silver .content-card {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.tier-gold .content-card {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.tier-platinum .content-card {
    background: linear-gradient(135deg, #E5E4E2 0%, #B4B4B4 100%);
}

/* Video Styling */
.videos-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
}

.video-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* Alternating background colors */
.video-card:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.video-card:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #1e3c72;
}

.video-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 75%;
    max-width: 320px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-card:hover .play-button {
    background: rgba(30, 60, 114, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.video-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
    line-height: 1.3;
}

.video-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.video-info p {
    margin: 0 0 1rem 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.video-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.video-meta span {
    font-size: 0.8rem;
    color: #666;
    background: rgba(30, 60, 114, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.no-videos {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Design for Videos */
@media (max-width: 768px) {
    .video-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .video-thumbnail {
        width: 100%;
        max-width: 100%;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-meta {
        justify-content: center;
    }
}

/* Schedule Table Styling */
.schedule-table table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.schedule-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tr:nth-child(odd) {
    background-color: #ffffff;
} 