/* Dashboard Specific Styles */

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

/* Subscription Expired Badge */
.subscription-expired-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
    margin-left: 0.5rem;
}

/* Expired Course Card Styling */
.course-card.course-expired {
    position: relative;
    opacity: 0.85;
    border: 2px solid #e9ecef;
    background-color: #f8f9fa;
}

.course-card.course-expired::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.7) 0%, rgba(233, 236, 239, 0.7) 100%);
    pointer-events: none;
    border-radius: inherit;
}

.course-card.course-expired .course-header,
.course-card.course-expired .course-description,
.course-card.course-expired .course-meta,
.course-card.course-expired .course-actions {
    position: relative;
    z-index: 1;
}

.course-card.course-expired .course-meta .text-danger {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Renew Subscription Button */
.btn.renew-subscription {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn.renew-subscription:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

/* View Certificate Button for Expired Courses */
.course-card.course-expired .btn.view-certificate {
    background-color: #27ae60;
    border-color: #27ae60;
}

.course-card.course-expired .btn.view-certificate:hover {
    background-color: #229954;
    border-color: #229954;
}

.dashboard-hero {
    background: linear-gradient(135deg, #0F3057 0%, #0A2242 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.dashboard-hero h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #0F3057;
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.dashboard-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.dashboard-section h2 {
    margin-top: 0;
    color: #0F3057;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Resource List */
.resource-list {
    display: grid;
    gap: 1rem;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resource-item-icon {
    font-size: 2rem;
    color: #0F3057;
    margin-right: 1rem;
}

.resource-item-content {
    flex: 1;
}

.resource-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.resource-item-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.resource-item-action {
    margin-left: auto;
}

/* Course Progress */
.course-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    background: #0F3057;
    height: 100%;
    width: var(--progress);
    transition: width 0.3s ease;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.action-card-icon {
    font-size: 3rem;
    color: #0F3057;
    margin-bottom: 1rem;
}

.action-card-title {
    font-weight: 600;
    color: #333;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-message {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* User Profile Section */
.user-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: #0F3057;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}

.user-details h3 {
    margin: 0 0 0.5rem 0;
    color: #0F3057;
}

.user-details p {
    margin: 0;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-hero h1 {
        font-size: 2rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .user-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-item {
        flex-direction: column;
        text-align: center;
    }
    
    .resource-item-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .resource-item-action {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }
}