/* Styles de base */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    margin-bottom: 2rem;
}

header h1 {
    margin: 0;
}

nav {
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
}

/* Formulaire */
.evaluation-section {
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-header {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Tableau d'évaluation */
.evaluation-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.evaluation-table th,
.evaluation-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: center;
}

.evaluation-table th {
    background-color: #f2f2f2;
}

.evaluation-table td:first-child {
    text-align: left;
}

/* Signatures */
.signature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.signature-box {
    border: 1px dashed #ccc;
    padding: 1rem;
    text-align: center;
}

.signature-pad {
    border: 1px solid #ddd;
    margin: 1rem 0;
    background-color: white;
}

.signature-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

/* Boutons */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #2ecc71;
}

.btn-clear {
    background: #e74c3c;
}

.btn:hover {
    opacity: 0.9;
}

.form-actions {
    margin-top: 2rem;
    text-align: right;
}
/* Messages d'alerte */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

/* Amélioration des formulaires */
.select2 {
    width: 100% !important;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Icônes */
.fas {
    margin-right: 5px;
}

/* Boutons améliorés */
.btn-primary {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.btn-primary:hover {
    background-color: #1a252f;
    border-color: #1a252f;
}
/* Styles spécifiques pour liste.php */
.app-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logout-btn {
    color: white;
    text-decoration: none;
}

.logout-btn:hover {
    text-decoration: underline;
}

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

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-draft {
    background-color: #fff3cd;
    color: #856404;
}

.status-submitted {
    background-color: #cce5ff;
    color: #004085;
}

.status-approved {
    background-color: #d4edda;
    color: #155724;
}

.status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #dee2e6;
}

.app-footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-table {
        display: block;
    }
}
.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}
/* Styles spécifiques DRH */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Amélioration tableau */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}
/* Styles spécifiques employé */
.user-profile {
    margin-bottom: 2rem;
}

.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-info p {
    margin: 0.5rem 0;
}

.eval-status {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
}

.comments-section {
    margin: 2rem 0;
}

.comment-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    min-height: 80px;
}

.signatures-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.signature-box {
    flex: 1;
    min-width: 200px;
}

.signature-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .signatures-container {
        flex-direction: column;
    }
}
/* Nouveaux styles */
.note-totale {
    background: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 1.2rem;
    border-radius: 4px;
    text-align: right;
}

.note-totale span {
    font-weight: bold;
    color: #2c3e50;
}

.three-columns, .two-columns {
    display: grid;
    gap: 1.5rem;
    margin: 1rem 0;
}

.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

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

.signature-pad-disabled {
    border: 1px dashed #ccc;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f9f9f9;
    margin: 1rem 0;
}

.note-cell {
    text-align: center;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .three-columns, .two-columns {
        grid-template-columns: 1fr;
    }
}
/* Disposition des colonnes */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

/* Note globale */
.note-totale {
    text-align: right;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.note-totale span {
    font-weight: bold;
    color: #2c3e50;
}

/* Signatures */
.signature-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.signature-pad-disabled {
    border: 1px dashed #ccc;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #f9f9f9;
}

/* Boutons */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .three-columns, .two-columns, .signature-container {
        grid-template-columns: 1fr;
    }
}
.signature-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-sign {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-sign:hover {
    background-color: #218838;
}
.signature-pad {
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: crosshair;
    border: 1px solid #ddd;
    background-color: white;
}

/* Empêcher le défilement pendant la signature */
body.signature-mode {
    overflow: hidden !important;
}
