/* Skill Matching Page Styles */

/* Main Container */
.skill-matching-container {
    background-color: #f8f9fa;
    min-height: calc(100vh - 60px);
    padding: 2rem 0;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 0.75rem;
}

/* Profile Section */
.profile-completion {
    margin-bottom: 1.5rem;
}

.completion-percentage {
    font-weight: 700;
    color: #3498db;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    margin-top: 0.5rem;
}

.progress-bar {
    background-color: #3498db;
    border-radius: 4px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    background-color: #e9f7fe;
    color: #3498db;
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    background-color: #3498db;
    color: white;
}

.skill-badge .skill-level {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    margin-left: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.skill-badge:hover .skill-level {
    background-color: white;
    color: #3498db;
}

.skill-badge .remove-skill {
    margin-left: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
}

.skill-badge .remove-skill:hover {
    opacity: 1;
}

.recommendations-container .skill-badge {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
}

.recommendations-container .skill-badge:hover {
    background-color: #e9f7fe;
    color: #3498db;
}

/* Job Preferences */
.form-check {
    margin-bottom: 0.5rem;
}

.form-check-input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

/* Job Matches */
.job-matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-matches-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0;
}

.view-toggle .btn {
    padding: 0.375rem 0.75rem;
    border-color: #dee2e6;
}

.view-toggle .btn.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

/* Job Card */
.job-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.job-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.4;
}

.company-name {
    color: #6c757d;
    font-size: 0.9rem;
}

.match-score {
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.match-score.high {
    background-color: #d4edda;
    color: #198754;
}

.match-score.medium {
    background-color: #fff3cd;
    color: #856404;
}

.match-score.low {
    background-color: #f8d7da;
    color: #721c24;
}

.match-details {
    margin: 1rem 0;
}

.match-details .progress {
    height: 6px;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

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

.tag {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.matched-skills .tag {
    background-color: #e9f7fe;
    color: #3498db;
}

.missing-skills .tag {
    background-color: #fff3e0;
    color: #ff9800;
}

.job-meta {
    margin: 1rem 0;
    color: #6c757d;
}

.job-meta i {
    margin-right: 0.25rem;
}

.job-meta span {
    margin-right: 1rem;
}

/* List View */
.list-view .job-card {
    display: flex;
    flex-direction: row;
}

.list-view .job-card .card-body {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-areas:
        "header score"
        "match match"
        "skills skills"
        "meta actions";
    gap: 0.75rem;
}

.list-view .d-flex:first-child {
    grid-area: header;
}

.list-view .match-score {
    grid-area: score;
    justify-self: end;
}

.list-view .match-details {
    grid-area: match;
    margin: 0;
}

.list-view .matched-skills,
.list-view .missing-skills {
    grid-area: skills;
    margin-bottom: 0;
}

.list-view .job-meta {
    grid-area: meta;
    margin: 0;
    align-self: center;
}

.list-view .d-flex:last-child {
    grid-area: actions;
    justify-self: end;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #e9f7fe;
    color: #3498db;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-state-description {
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-outline-primary {
    color: #3498db;
    border-color: #3498db;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #3498db;
    border-color: #3498db;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 2px solid #f1f1f1;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 700;
    color: #2c3e50;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid #f1f1f1;
    padding: 1.25rem 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .card {
        margin-bottom: 1.5rem;
    }
    
    .list-view .job-card .card-body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "score"
            "match"
            "skills"
            "meta"
            "actions";
    }
    
    .list-view .match-score {
        justify-self: start;
    }
    
    .list-view .d-flex:last-child {
        justify-self: start;
    }
}

/* Skill-based view styles */
.view-toggle-btn {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.skill-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0.25rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #495057;
}

.matched-skills {
    margin-top: 0.5rem;
}

.missing-skills-container {
    margin-top: 0.5rem;
}

.progress {
    height: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-recommendations {
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.recommendation-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.recommendation-item:last-child {
    border-bottom: none;
} 