/**
 * Progress Dashboard Styles
 * Styles for the certification progress dashboard
 */

/* Hide dashboard by default - only show in certification tab */
.certification-section {
    display: none;
}

.tab-content .certification-section {
    display: block;
}

.progress-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.overall-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.overall-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.overall-bar {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.overall-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
    border-radius: 12px;
}

.overall-percentage {
    font-weight: 700;
    font-size: 1.2rem;
    color: #4CAF50;
    min-width: 60px;
    text-align: right;
}

.badge-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.badge-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.badge-card.earned {
    border: 2px solid #4CAF50;
}

.badge-header {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    padding: 1.5rem;
    border-bottom: 3px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.badge-icon {
    font-size: 3rem;
    line-height: 1;
}

.badge-title h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

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

.earned-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-requirements {
    padding: 1.5rem;
}

.requirement-item {
    margin-bottom: 1.5rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.requirement-label {
    font-weight: 600;
    color: #444;
}

.requirement-count {
    font-weight: 700;
    color: #666;
}

.requirement-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.requirement-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.requirement-fill.passed {
    background: #4CAF50 !important;
}

.passing-line {
    position: absolute;
    top: -4px;
    height: 20px;
    width: 2px;
    background: #ff5722;
    transform: translateX(-1px);
}

.passing-label {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #ff5722;
    font-weight: 600;
    white-space: nowrap;
}

.badge-footer {
    padding: 1.5rem;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

.btn-exam,
.btn-certificate {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-exam {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.btn-exam:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-exam.retry {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.btn-exam.retry:hover {
    background: linear-gradient(135deg, #F57C00, #EF6C00);
}

.btn-exam.disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-certificate {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.btn-certificate:hover {
    background: linear-gradient(135deg, #388E3C, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.exam-hint,
.eligibility-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.eligibility-hint {
    color: #f44336;
    font-weight: 500;
}

.next-steps {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.next-steps h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #2c3e50;
}

.steps-list {
    margin: 0;
    padding-left: 1.5rem;
}

.steps-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.steps-list li:last-child {
    margin-bottom: 0;
}

.next-steps.completed {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
}

.next-steps.completed h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.next-steps.completed p {
    font-size: 1.2rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-dashboard {
        padding: 1rem;
    }
    
    .dashboard-header h2 {
        font-size: 2rem;
    }
    
    .badge-cards {
        grid-template-columns: 1fr;
    }
    
    .overall-progress {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .overall-label {
        min-width: auto;
    }
    
    .overall-percentage {
        min-width: auto;
    }
}
