/* --- WPFT Talent Record Styles --- */
.wpft-talent-record-container {
    margin-bottom: 20px;
    font-family: sans-serif;
}
.wpft-talent-record-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.wpft-talent-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    flex-wrap: wrap; 
    gap: 10px;
}
.wpft-talent-person-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1; 
    min-width: 250px; 
}
.wpft-talent-person-selector label {
    margin-bottom: 0;
    font-weight: bold;
    white-space: nowrap;
}
.wpft-select2-talent-record.select2-container { /* Target Select2 container */
    min-width: 200px; 
    width: auto !important; 
    flex-grow: 1;
}
#wpft_nominate_candidate_button,
#wpft_show_talent_standards_button {
    padding: 8px 15px;
    font-size: 0.9em;
    flex-shrink: 0; 
}

.wpft-talent-section {
    margin-bottom: 30px;
}
.wpft-talent-section h3 {
    font-size: 1.4em;
    color: #444;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.wpft-talent-generation-group {
    margin-bottom: 25px;
}
.wpft-talent-generation-label {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #007bff;
}

.wpft-talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.wpft-talent-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    transition: box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.wpft-talent-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.wpft-talent-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.wpft-badge-candidate { background-color: #ffc107; /* Amber */ }
.wpft-badge-talent { background-color: #28a745; /* Green */ }

.wpft-talent-avatar-link { display: block; margin-bottom: 10px; }
.wpft-talent-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
    margin: 10px auto 5px auto; 
}
.wpft-talent-name {
    font-size: 1.15em;
    margin-bottom: 10px;
    color: #333;
    min-height: 2.4em; 
    flex-grow: 1; /* Allow name to take space */
}
.wpft-talent-name a { color: inherit; text-decoration: none; }
.wpft-talent-name a:hover { text-decoration: underline; }

.wpft-talent-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.wpft-vote-button, .wpft-view-voters-button {
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 4px;
    cursor: pointer;
}
.wpft-vote-button {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}
.wpft-vote-button:hover:not(:disabled) { background-color: #0056b3; }
.wpft-vote-button.voted, .wpft-vote-button:disabled {
    background-color: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
}
.wpft-vote-button .fa-thumbs-up { margin-right: 5px; }
.wpft-vote-button .fa-spin { animation: fa-spin 1s infinite linear; }
.wpft-view-voters-button {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}
.wpft-view-voters-button:hover { background-color: #e0e0e0; }

/* Modal Styles (can be in style-modals.css) */
.wpft-modal { /* Ensure this is defined if not already in style-modals.css */
    display: none;
    position: fixed;
    z-index: 10010; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.wpft-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.wpft-modal-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}
.wpft-modal-close-btn:hover,
.wpft-modal-close-btn:focus {
    color: black;
    text-decoration: none;
}
.wpft-modal-content h3 { margin-top: 0; }
.wpft-standards-content, #wpft-voters-list-content {
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}
#wpft-voters-list-content ul { list-style: disc; padding-left: 20px; }
#wpft-voters-list-content li { margin-bottom: 5px; }

#wpft-talent-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none; 
}
#wpft-talent-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#wpft-talent-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}