/* ====================================================================
   ONBOARDING WELCOME MODAL
   ==================================================================== */

.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
    animation: welcomeFadeIn 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.welcome-modal.hidden {
    display: none;
}

@keyframes welcomeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-content {
    background: linear-gradient(145deg, #1B5E7C, #0F3E54);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: welcomeSlideUp 0.5s ease;
    position: relative;
    padding-bottom: 100px; /* ADD THIS - Space for banner ads */
}

@keyframes welcomeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.welcome-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.welcome-header {
    padding: 40px 20px 30px; /* CHANGED from 40px 30px 30px */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), transparent);
	border-radius: 20px 20px 0 0;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #06D6A0, #28A745);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
    animation: welcomeIconPulse 2s infinite;
}

@keyframes welcomeIconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(6, 214, 160, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(6, 214, 160, 0.6);
    }
}

.welcome-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.welcome-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

.welcome-body {
    padding: 25px 8px;
}

.welcome-intro {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #06D6A0;
    padding: 15px 8px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.welcome-intro p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.welcome-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.welcome-step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.welcome-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #06D6A0, #2E86AB);
    transition: width 0.3s ease;
}

.welcome-step:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.welcome-step:hover::before {
    width: 6px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2E86AB, #1B5E7C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.step-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.step-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 55px;
}

.welcome-tip {
    background: linear-gradient(135deg, rgba(241, 143, 1, 0.15), rgba(244, 162, 97, 0.1));
    border: 1px solid rgba(241, 143, 1, 0.3);
    border-radius: 12px;
    padding: 15px 8px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.tip-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F18F01, #F4A261);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(241, 143, 1, 0.3);
}

.tip-content {
    flex: 1;
}

.tip-content h4 {
    color: #F18F01;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.tip-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.welcome-footer {
    padding: 25px 8px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dont-show-again:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #06D6A0;
}

.dont-show-again input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #06D6A0;
}

.dont-show-again label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    cursor: pointer;
    flex: 1;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.welcome-btn {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.welcome-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.welcome-btn-primary {
    background: linear-gradient(135deg, #06D6A0, #28A745);
    color: white;
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.4);
}

.welcome-btn-primary:hover {
    background: linear-gradient(135deg, #28A745, #06D6A0);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 214, 160, 0.5);
}

/* Scrollbar for welcome content */
.welcome-content::-webkit-scrollbar {
    width: 8px;
}

.welcome-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.welcome-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #06D6A0, #2E86AB);
    border-radius: 4px;
}

.welcome-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #28A745, #06D6A0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-modal {
        padding: 10px;
    }
    
    .welcome-content {
        max-width: 98%;
        border-radius: 15px;
        margin: 10px;
    }

    .welcome-header {
        padding: 35px 15px 25px;
    }

    .welcome-header h2 {
        font-size: 1.6rem;
    }

    .welcome-header p {
        font-size: 1rem;
    }

    .welcome-body {
        padding: 25px 15px;
    }
    
    /* ADD THESE NEW RULES */
    .welcome-intro {
        padding: 15px 12px; /* Reduce horizontal padding */
    }

    .welcome-step {
        padding: 18px 12px; /* CHANGE from padding: 20px */
    }
    
    .welcome-tip {
        padding: 15px 12px; /* Reduce horizontal padding */
    }
    /* END NEW RULES */

    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .step-description {
        padding-left: 0;
    }

    .welcome-footer {
        padding: 20px 15px;
    }

    .welcome-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .welcome-modal {
        padding: 2px;
    }
    
    .welcome-content {
        max-width: 100%;
        border-radius: 10px;
    }

    .welcome-header {
        padding: 30px 5px 20px;
    }

    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .welcome-header h2 {
        font-size: 1.4rem;
    }

    .welcome-header p {
        font-size: 0.9rem;
    }

    .welcome-body {
        padding: 20px 3px;
    }

    .welcome-intro {
        padding: 12px 8px;
    }

    .welcome-step {
        padding: 15px 10px;
    }
    
    .step-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .step-title {
        font-size: 1.05rem;
        text-align: center;
        width: 100%;
    }

    .step-description {
        font-size: 0.9rem;
        padding-left: 0;
        text-align: center;
    }

    .welcome-tip {
        padding: 12px 8px;
        flex-direction: column;
    }

    .tip-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .welcome-close-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 15px;
        right: 15px;
    }
    
    .welcome-footer {
        padding: 20px 8px;
    }
}

/* ====================================================================
   ASSESSMENT GUIDANCE MODAL
   ==================================================================== */

.assessment-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
    animation: welcomeFadeIn 0.4s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.assessment-guide-modal.hidden {
    display: none;
}

.assessment-guide-content {
    background: linear-gradient(145deg, #1B5E7C, #0F3E54);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: welcomeSlideUp 0.5s ease;
    position: relative;
    padding-bottom: 100px;
}

.assessment-guide-header {
    padding: 40px 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.1), transparent);
}

.assessment-guide-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2E86AB, #1B5E7C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.4);
}

.assessment-guide-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.assessment-guide-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.5;
}

.assessment-guide-body {
    padding: 30px 20px;
}

.guide-rating-system {
    margin-bottom: 25px;
}

.rating-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.rating-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.rating-item.excellent { border-color: #06D6A0; }
.rating-item.good { border-color: #28A745; }
.rating-item.fair { border-color: #F18F01; }
.rating-item.poor { border-color: #E63946; }
.rating-item.na { border-color: #6C757D; }

.rating-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.rating-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.guide-tips-section {
    background: linear-gradient(135deg, rgba(6, 214, 160, 0.1), rgba(40, 167, 69, 0.05));
    border: 1px solid rgba(6, 214, 160, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.guide-tips-section h4 {
    color: #06D6A0;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-tips-section ul {
    margin: 0;
    padding-left: 20px;
}

.guide-tips-section li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .assessment-guide-modal {
        padding: 5px;
    }
    
    .assessment-guide-content {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .assessment-guide-header {
        padding: 30px 12px 20px;
    }
    
    .assessment-guide-header h2 {
        font-size: 1.4rem;
    }
    
    .assessment-guide-body {
        padding: 20px 12px;
    }
    
    .rating-item {
        padding: 12px;
    }
}