
/* Custom CSS for Learning Profile Dashboard */

:root {
    --primary-color: #4b86e7;
    --secondary-color: #8261d1;
    /* --success-color: #10b981; */
    --success-color: #28a1b6;
    --warning-color: #ebad41;
    /* --info-color: #06b6d4; */
    --info-color: #46c59b;
    --danger-color: #e37d7d;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}
.mcontent{
    color:#ebad41 ;
}
body {
    /* background:  #E1E8ED; */
     background: #f0f2f5;
     /* background: #20385e; */
     /* background: #0B1B2B; */

    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
    font-family: Inter ,sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(244, 235, 235, 0.95) !important; 
   background-color: #E1E8ED !important;
} 

/* Navigation  khaled */

.header {
    
    /* border-bottom: 1px solid black; */
    /* margin-bottom: 0; */



}

.header-container {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  /* padding: 5px 5px; */

  position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
        background-color: #eeeeee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}


.header-container li {
   margin: 0 15px;
    padding:5px ;

}

.header-container a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}
.header-container li:not(.search ):not(.logo ):not(.profile-pic):hover {
  background: #f1d38a;
  border-radius: 4px;   
}
.header-container li.logo:hover,
.header-container li.search:hover {
  background: none;
  border-radius: 0;
}
.input-header-container {
  width: 450px;
  padding: 13px 50px;
  border-radius: 20px;
  border: 1px solid gray;
  outline: none;
  color: gray;
}
.input-header-container:focus {
  border-color: black;
}

/*khaled end */

.user-avatar {
    width: 32px;
    height: 32px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden; 
}


.user-avatar img.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/* Main Content */
.main-content {
    /* padding-top: 80px; */
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
}

.profile-picture {
    display: flex;
    justify-content: center;
}

/* .avatar-large {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: var(--box-shadow);
} */

.status-indicator {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background-color: var(--success-color);
    border-radius: 50%;
    border: 4px solid white;
}

.status-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

/* Stat Badges */
.stat-badge {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.stat-badge:hover {
    /* transform: translateY(-1px); */
}

.stat-blue {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.stat-purple {
    background-color: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
}

.stat-green {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* Icon Wrapper */
.icon-wrapper {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress Bars */
.progress-custom {
    height: 12px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    border-radius: 6px;
    /* transition: width 0.8s ease; */
}

.bg-purple {
    /* background-color: var(--secondary-color) !important; */
}

.progress-item {
    /* transition: var(--transition); */
    padding: 8px;
    border-radius: 8px;
}

.progress-item:hover {
    /* background-color: rgba(0, 0, 0, 0.02); */
}

/* Overall Progress */
.overall-progress {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Course Cards */
.course-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-thumbnail {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.play-button {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.level-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.level-beginner {
    background-color: rgba(16, 185, 129, 0.9);
    color: white;
}

.level-intermediate {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
}

.level-advanced {
    background-color: rgba(139, 92, 246, 0.9);
    /* background-color: rgba(236, 246, 92, 0.9);  */
    color: white;
}

.level-expert {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}

/* Achievement Cards */
.achievement-card {
    text-align: center;
    padding: 24px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.achievement-card.earned {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
}

.achievement-card.earned:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.achievement-card.not-earned {
    opacity: 0.6;
    border-color: rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.5rem;
}

.achievement-icon.earned {
    background: linear-gradient(135deg, var(--success-color), #059669);
    color: white;
}

.achievement-icon.not-earned {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.4);
}

.earned-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .avatar-large {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .stat-badge {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1f2937, #111827) !important;
}

footer .logo-icon {
    /* background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); */
}

.face-icon:hover {
    color: #4b86e7 !important;
    transition: var(--transition);
}
footer a:hover {
    color: rgb(247, 214, 1) !important;
    transition: var(--transition);
}
