/* Role-based job board action styles */
.btn-insert-candidate {
    background: #28a745;
    color: white;
    border: 1px solid #1e7e34;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.btn-insert-candidate:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

.btn-complete-profile {
    background: #ffc107;
    color: #000;
    border: 1px solid #e0a800;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
}

.btn-complete-profile:hover {
    background: #e0a800;
    color: #000;
    text-decoration: none;
}

.btn-login {
    background: #007cba;
    color: white;
    border: 1px solid #005a87;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.candidate-stats {
    margin-top: 4px;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.missing-requirements {
    margin-top: 4px;
    font-size: 11px;
    color: #dc3545;
    line-height: 1.3;
}

.application-status {
    color: #28a745;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Modal styles */
.axxis-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axxis-modal {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #495057;
    background: #e9ecef;
}

.modal-body {
    padding: 20px;
}

/* Candidate selection styles */
.candidates-list {
    max-height: 400px;
    overflow-y: auto;
}

.candidate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
    transition: background 0.2s;
}

.candidate-item:hover {
    background: #e9ecef;
}

.candidate-info h4 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 16px;
}

.candidate-info p {
    margin: 0 0 3px 0;
    color: #6c757d;
    font-size: 14px;
}

.candidate-info small {
    color: #868e96;
    font-size: 12px;
}

.insert-this-candidate {
    background: #28a745;
    color: white;
    border: 1px solid #1e7e34;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.insert-this-candidate:hover {
    background: #218838;
}

/* Requirements modal styles */
.requirements-content {
    max-height: 400px;
    overflow-y: auto;
}

.requirement-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
}

.requirement-section h4 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 14px;
    color: #495057;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #007cba;
    color: white;
    border: 1px solid #005a87;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: #007cba;
    border-color: #005a87;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-success {
    background: #28a745;
    border-color: #1e7e34;
}

.btn-success:hover {
    background: #218838;
}

.success {
    color: #28a745;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.error {
    color: #dc3545;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.loading {
    text-align: center;
    color: #6c757d;
    padding: 20px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .axxis-modal {
        width: 95%;
        margin: 10px;
    }
    
    .candidate-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .candidate-info {
        text-align: center;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Job board integration adjustments */
.col-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.col-actions .btn-view {
    margin-bottom: 4px;
}

/* Ensure buttons don't break layout */
.btn-insert-candidate,
.btn-complete-profile,
.btn-login {
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

/* Icon support */
.fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Fallback if Font Awesome not loaded */
.btn-insert-candidate::before,
.btn-complete-profile::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 5px;
}
