body {
    background: #f8fafc;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding-top: 70px;
}

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

/* Back to Dashboard Button */
.back-to-dashboard {
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #6b7280;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.back-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #1d4ed8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Candidate Profile Card */
.candidate-profile-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.profile-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.profile-email {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.upload-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.upload-info svg {
    width: 16px;
    height: 16px;
}

.suitable-roles-success {
    background: #d1fae5;
    color: #198754;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.suitable-roles-dangers {
    background: #e08291;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-status {
    background: #d1fae5;
    color: #198754;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-status::before {
    content: "✓";
    font-weight: bold;
}

/* HirebyAI Analysis Section */
.analysis-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow: hidden;
}

.analysis-header {
    background: #1d4ed8;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-header::before {
    content: "🔍";
}

.analysis-content {
    padding: 2rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rating-card {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.rating-score {
    font-size: 3rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.rating-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.professional-summary h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.professional-summary p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.info-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    height: fit-content;
    align-self: start;
}

.info-card.experience {
    background: #cff4fc;
    border: 1px solid #b6effb;
}

.info-card.years {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.info-card.salary {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.info-card.recommendation {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    text-align: left;
}

.info-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.info-card .value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.info-card.recommendation .value {
    font-size: 0.875rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.6;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title-missing-word {
    font-size: 1.125rem;
    font-weight: 400;
    color: red;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-container {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.technical-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    background: #dbeafe;
    color: #1e40af;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.key-strengths {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.strengths-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strengths-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.strengths-list li::before {
    content: "•";
    color: #1d4ed8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.education-section,
.achievements-section {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.education-item,
.achievement-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
}

.education-item h5,
.achievement-item h5 {
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
}

.education-item p,
.achievement-item p {
    color: #6b7280;
    margin: 0;
    font-size: 0.75rem;
}

.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.improvement-areas,
.suitable-roles {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.improvement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.improvement-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}

.improvement-list li::before {
    content: "→";
    color: #f59e0b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.role-tag {
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-tag.frontend {
    background: #cff4fc;
    color: #0dcaf0;
    border: 1px solid #b6effb;
}

.role-tag.fullstack {
    background: #d1fae5;
    color: #198754;
    border: 1px solid #a7f3d0;
}

.role-tag.technical {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.role-tag.project {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.concerns-focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.red-flags,
.interview-focus {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ef4444;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.interview-focus {
    background: white;
    border-left-color: #0dcaf0;
}

.red-flags h4,
.interview-focus h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flags-list,
.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flags-list li,
.focus-list li {
    padding: 0.5rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
}
.red-flags-list li {
    color: #dc3545;
}

.flags-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
}

.focus-list li::before {
    content: "?";
    color: #0dcaf0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* CV Enhancement Suggestions Section */
.cv-enhancement-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow: hidden;
}

.cv-enhancement-header {
    background: #1d4ed8;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-enhancement-header::before {
    content: "📄";
}

.cv-enhancement-content {
    padding: 2rem;
}

.cv-score-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
    gap: 1rem;
}

.cv-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f59e0b;
    margin: 0;
}

.cv-score-label {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.cv-improvements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.critical-improvements {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
}

.critical-improvements h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.high-impact-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.improvement-item {
    background: #fef2f2;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    /* padding: 1rem; */
    margin-bottom: 0.5rem;
}

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

.improvement-category {
    font-weight: 600;
    color: #111827;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.improvement-suggestion {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    margin-left: 20px;
}

/* Continued Learning Recommendations Section */
.continued-learning-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow: hidden;
}

.continued-learning-header {
    background: #1d4ed8;
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.continued-learning-header::before {
    content: "📚";
}

.continued-learning-content {
    padding: 2rem;
}

.certifications-section {
    margin-bottom: 2rem;
}

.certifications-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

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

.certification-card-enhanced {
    background: linear-gradient(135deg, #fefce8 80%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

.certification-card-enhanced:hover {
    box-shadow: 0 6px 24px rgba(253, 224, 71, 0.25);
    transform: translateY(-4px) scale(1.02);
}

.certification-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.certification-icon {
    color: #f59e42;
    font-size: 1.5rem;
}

.provider-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-left: auto;
}

.certification-level-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #6366f1;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.level-beginner { background: #38bdf8; }
.level-intermediate { background: #f59e42; }
.level-advanced { background: #ef4444; }

.certification-progress-bar {
    background: #e5e7eb;
    border-radius: 8px;
    height: 8px;
    margin-top: 0.5rem;
    width: 100%;
    overflow: hidden;
}

.certification-progress-bar .progress {
    background: #10b981;
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s;
}

.roadmap-timeline-enhanced {
    position: relative;
}

.timeline-item-enhanced {
    position: relative;
    padding-left: 2.5rem;
    border-left: 4px solid #1d4ed8;
    background: #f3f4f6;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s, background 0.2s;
}

.timeline-item-enhanced:hover {
    background: #e0e7ff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.10);
}

.timeline-dot {
    position: absolute;
    left: -0.85rem;
    top: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    background: #1d4ed8;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #1d4ed8;
    z-index: 2;
}

.priority-high .timeline-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px #ef4444;
}

.priority-medium .timeline-dot {
    background: #f59e42;
    box-shadow: 0 0 0 2px #f59e42;
}

.priority-low .timeline-dot {
    background: #10b981;
    box-shadow: 0 0 0 2px #10b981;
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    .roadmap-timeline-enhanced {
        grid-template-columns: 1fr;
    }
    .timeline-item-enhanced {
        padding-left: 2rem;
    }
}

.formatting-improvements {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.formatting-improvements h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem 0;
}

.formatting-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formatting-list li {
    padding: 0.75rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.formatting-list li:last-child {
    border-bottom: none;
}

.formatting-list li::before {
    content: "•";
    color: #1d4ed8;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Footer Styles */
.footer {
    background: #f8fafc;
    color: #64748b;
    padding: 3rem 2rem 2rem;
    border-top: 1px solid #e2e8f0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.footer-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #1d4ed8;
    color: white;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1f2937;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: #64748b;
    font-size: 13px;
}

.footer-badge {
    display: flex;
    align-items: center;
}

.security-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .candidate-profile-card,
    .analysis-content {
        padding: 1.5rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .info-card.recommendation {
        grid-column: 1 / -1;
    }

    .two-column-grid,
    .concerns-focus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .technical-skills {
        gap: 0.375rem;
    }

    .skill-tag {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .role-tags {
        gap: 0.375rem;
    }

    .role-tag {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .analysis-header {
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }

    .rating-score {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Jobs Section */
.jobs-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
    overflow: hidden;
}

.jobs-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jobs-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.jobs-title p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

.jobs-actions {
    display: flex;
    gap: 0.75rem;
}

.fetch-jobs-btn,
.cover-letter-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.fetch-jobs-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fetch-jobs-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cover-letter-btn {
    background: #10b981;
    color: white;
}

.cover-letter-btn:hover {
    background: #198754;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
}

.job-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.job-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.job-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #10b981;
    margin: 0;
}

.job-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.job-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-tag.web-developer {
    background: #cff4fc;
    color: #0dcaf0;
}

.job-tag.mid-level {
    background: #fbbf24;
    color: white;
}

.job-tag.senior {
    background: #10b981;
    color: white;
}

.company-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem 0;
}

.company-info .location {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.job-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-type {
    display: flex;
    gap: 0.5rem;
}

.type-tag,
.level-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-tag.full-time {
    background: #cff4fc;
    color: #0dcaf0;
}

.level-tag.mid-level-tag {
    background: #fbbf24;
    color: white;
}

.level-tag.senior-tag {
    background: #10b981;
    color: white;
}

.skills-required {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.job-card .skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.posted-date,
.job-source {
    font-size: 0.75rem;
    color: #6b7280;
}

.apply-btn {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-btn:hover {
    background: #198754;
}

.show-all-jobs {
    display: flex;
    justify-content: center;
    padding: 2rem;
    padding-top: 0;
}

.show-all-btn {
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.show-all-btn:hover {
    background: #198754;
}

.show-all-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }

    .candidate-profile-card,
    .analysis-content {
        padding: 1rem;
    }

    .analysis-header {
        padding: 0.75rem 1rem;
    }

    .rating-score {
        font-size: 2rem;
    }

    .info-card .value {
        font-size: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card.recommendation {
        grid-column: 1;
    }

    .technical-skills {
        justify-content: center;
    }

    .cv-enhancement-content {
        padding: 1.5rem;
    }

    .cv-score {
        font-size: 2rem;
    }

    .cv-score-section {
        margin-bottom: 1.5rem;
    }

    .critical-improvements,
    .formatting-improvements {
        padding: 1rem;
    }

    .cv-enhancement-header {
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
    }

    .jobs-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 1.5rem;
    }

    .jobs-actions {
        justify-content: center;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .job-card {
        padding: 1rem;
    }

    .job-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .apply-btn {
        width: 100%;
        text-align: center;
    }

    .back-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .back-btn svg {
        width: 14px;
        height: 14px;
    }
}

.skills-container {
    margin-bottom: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    /* Add this for mobile full width */
    width: 100%;
    box-sizing: border-box;
}

.skills-badges-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7em;
    align-items: flex-start;
    /* Ensure badges use all available space */
    width: 100%;
}

.skill-badge {
    padding: 0.55em 1.2em;
    border-radius: 2em;
    font-size: 1rem;
    font-weight: 600;
    background: #e7f7ef;
    color: #2b5d4f;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    margin-bottom: 0.2em;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    /* Prevent badges from being too wide on mobile */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.skill-badge-main {
    background: #e7f7ef;
    color: #227a5e;
}

.skill-badge-suggested {
    background: #e08291;
    color: #fff;
}

.skills-suggested-label {
    width: 100%;
    font-size: 1.05rem;
    color: #c94a6a;
    font-weight: 700;
    margin: 1em 0 0.3em 0;
    letter-spacing: 0.04em;
    display: block;
}

@media (max-width: 600px), (max-width: 480px), (max-width: 350px) {
    .skills-badges-group {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }
    .skill-badge {
        display: inline-block !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .skills-container {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .two-column-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .skills-container,
    .key-strengths {
        padding: 1rem 0.5rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    .skills-badges-group {
        gap: 0.3em;
        flex-direction: column;
        align-items: stretch;
    }
    .skill-badge {
        font-size: 0.9rem;
        padding: 0.35em 0.7em;
        margin-bottom: 0.1em;
        width: auto !important;
        display: inline-block !important;
        text-align: left;
    }
    .skills-suggested-label {
        font-size: 0.95rem;
        margin-top: 0.5em;
    }
    .strengths-list li {
        font-size: 0.95rem;
        padding: 0.4rem 0 0.4rem 1.2rem;
    }
}

@media (max-width: 350px) {
    .skills-container,
    .key-strengths {
        padding: 0.5rem 0.2rem;
    }
    .skill-badge {
        font-size: 0.8rem;
        padding: 0.2em 0.4em;
        width: auto !important;
        display: inline-block !important;
    }
}

.certification-warning-card {
    background: #fffbea;
    border-left: 6px solid #f59e42;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(245, 158, 66, 0.08);
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}
.certification-warning-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #b45309;
}
.warning-icon {
    color: #f59e42;
    font-size: 1.3rem;
}
.certification-warning-title {
    font-weight: 700;
    color: #b45309;
    font-size: 1.1rem;
}
.certification-level-badge {
    margin-left: auto;
    position: static;
    background: #fde68a;
    color: #b45309;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 0.2rem 0.7rem;
}
.level-beginner { background: #fef9c3; color: #2563eb; }
.level-intermediate { background: #fde68a; color: #b45309; }
.level-advanced { background: #fecaca; color: #b91c1c; }
.certification-warning-body {
    margin-left: 2.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.certification-warning-provider {
    color: #a16207;
    font-size: 0.95rem;
    font-weight: 500;
}
.certification-warning-reason {
    color: #15803d;
    font-size: 0.97rem;
    font-weight: 500;
    margin-top: 0.2rem;
}
.certification-progress-bar {
    background: #fde68a;
    border-radius: 8px;
    height: 8px;
    margin-top: 0.5rem;
    width: 100%;
    overflow: hidden;
}
.certification-progress-bar .progress {
    background: #f59e42;
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s;
}
@media (max-width: 600px) {
    .certification-warning-card {
        padding: 0.75rem 0.5rem;
        margin-bottom: 1rem;
    }
    .certification-warning-header {
        font-size: 1rem;
        gap: 0.5rem;
    }
    .certification-warning-body {
        margin-left: 1.5rem;
    }
    .certification-level-badge {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
    }
}
