/* css/style.css */
body {
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.container, .dashboard-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.card-header {
  background: #007bff;
  color: #fff;
  padding: 10px 15px;
  border-radius: 4px 4px 0 0;
}

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

.table th, .table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.btn {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  background-color: #007bff;
}

.btn.primary, .btn-primary { background-color: #007bff; }
.btn.secondary, .btn-secondary { background-color: #6c757d; }
.btn.success, .btn-success { background-color: #28a745; }
.btn.warning, .btn-warning { background-color: #ffc107; color: #000; }
.btn.danger, .btn-danger { background-color: #dc3545; }

/* Styles pour interventions.php */
.dashboard-container {
    display: grid;
    grid-template-columns: minmax(250px, 300px) 1fr;
    gap: 1.5rem;
    padding: 1rem;
    max-width: 100%;
    align-items: start;
}

.filters-card,
.interventions-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-form {
    padding: 1rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.reason-cell {
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
}

.pagination-container {
    padding: 1rem;
    display: flex;
    justify-content: center;
}

/* Styles pour la modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-card {
        position: sticky;
        top: 1rem;
        z-index: 10;
    }
}
