/* Styles généraux pour Job Manager */
.job-manager-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.job-manager-form h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    color: #7f8c8d;
    font-size: 12px;
}

.form-group button {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-group button:hover {
    background: #2980b9;
}

.job-manager-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* Styles pour les offres d'emploi */
.job-offers-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.job-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.job-offer-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.job-offer-card:hover {
    transform: translateY(-2px);
}

.job-offer-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.company {
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 15px;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.contract-type,
.location,
.salary {
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #34495e;
}

.job-description {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
}

.job-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.apply-button {
    background: #27ae60;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s ease;
}

.apply-button:hover {
    background: #229954;
}

/* Styles pour la CVthèque */
.cvtheque-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cv-search-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-button {
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #2980b9;
}

.cv-results h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.cv-list {
    display: grid;
    gap: 20px;
}

.cv-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.cv-header h4 {
    color: #2c3e50;
    margin: 0;
}

.cv-date {
    color: #7f8c8d;
    font-size: 14px;
}

.cv-info {
    margin-bottom: 15px;
}

.info-item {
    margin-bottom: 8px;
}

.info-item strong {
    color: #34495e;
}

.cv-section {
    margin-bottom: 15px;
}

.cv-section h5 {
    color: #2c3e50;
    margin-bottom: 8px;
}

.cv-section p {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

.cv-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.view-cv-btn,
.contact-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.view-cv-btn {
    background: #3498db;
    color: white;
}

.view-cv-btn:hover {
    background: #2980b9;
}

.contact-btn {
    background: #27ae60;
    color: white;
}

.contact-btn:hover {
    background: #229954;
}

/* Modal pour PDF */
.cv-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

.pdf-viewer-container {
    margin-top: 20px;
}

/* Login form styles */
.employer-login-required {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.employer-login-required h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.employer-login-required p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.login-options {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form {
    margin-bottom: 20px;
}

.register-link {
    margin-top: 20px;
}

.access-denied {
    color: #e74c3c;
}

/* Responsive design */
@media (max-width: 768px) {
    .job-offers-grid {
        grid-template-columns: 1fr;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
    }
    
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cv-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Styles pour l'affichage des fichiers sélectionnés */
.file-selection-info {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.file-selection-info strong {
    color: #155724;
    display: block;
    margin-bottom: 10px;
}

.file-selection-info ul {
    margin: 0;
    padding-left: 20px;
}

.file-selection-info li {
    color: #0f5132;
    margin-bottom: 5px;
    font-size: 14px;
}

.file-selection-info li:last-child {
    margin-bottom: 0;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

/* Styles pour l'analyse IA */
#analyze-cv-ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-size: 14px;
}

#analyze-cv-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#analyze-cv-ai:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#ai-analysis-status {
    min-height: 40px;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

#ai-analysis-status .loading {
    color: #667eea;
    font-weight: 600;
    background: #f0f4ff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #d6e4ff;
}

#ai-analysis-status .success-message {
    color: #155724;
    background: #d4edda;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    font-weight: 600;
}

#ai-analysis-status .error-message {
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    font-weight: 600;
}

/* Indicateur IA dans l'administration */
.notice.notice-success {
    border-left: 4px solid #667eea;
}

.notice.notice-warning {
    border-left: 4px solid #ffc107;
}

/* Styles pour les modes spéciaux frontend */
.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-box h3 {
    color: #1565c0;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-box p {
    color: #37474f;
    margin-bottom: 10px;
    line-height: 1.5;
}

.info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.info-box li {
    color: #37474f;
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-box strong {
    color: #1565c0;
}

/* Styles pour l'admin simplifié */
.admin-info-box {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.admin-info-box h3 {
    color: #e65100;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.admin-info-box p {
    color: #5d4037;
    margin-bottom: 10px;
    line-height: 1.5;
}

.admin-info-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.admin-info-box li {
    color: #5d4037;
    margin-bottom: 8px;
    line-height: 1.4;
}

.admin-info-box strong {
    color: #e65100;
}

/* Bouton de retour */
.button.return-button {
    background: #78909c;
    margin-left: 15px;
}

.button.return-button:hover {
    background: #546e7a;
}

/* Mode bulk spécifique */
.form-group input[type="hidden"] {
    display: none;
}

/* Responsive pour les modes spéciaux */
@media (max-width: 768px) {
    .info-box,
    .admin-info-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .info-box h3,
    .admin-info-box h3 {
        font-size: 16px;
    }
}
