/**
 * Styles principaux pour l'application ARINWA
 */

/* Variables */
:root {
    --primary-color: #0073b7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;

    
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-bottom: 50px;
}

/* En-tête et navigation */
.navbar-brand img {
    margin-right: 10px;
}

/* Messages flash */
.alert {
    border-radius: 5px;
    border-left-width: 5px;
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger {
    border-left-color: var(--danger-color);
}

.alert-warning {
    border-left-color: var(--warning-color);
}

.alert-info {
    border-left-color: var(--info-color);
}

/* Cartes */
.card {
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
}

/* Badges et statuts */
.badge {
    font-size: 85%;
    padding: 0.35em 0.65em;
    border-radius: 4px;
    color: white;
}

/* Messages dans les requêtes */
.messages-container {
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message-left {
    align-items: flex-start;
}

.message-right {
    flex-direction: row-reverse;
}

.message-avatar {
    margin-right: 15px;
    margin-left: 15px;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.message-content {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    max-width: 80%;
}

.message-left .message-content {
    background-color: #f8f9fa;
}

.message-right .message-content {
    background-color: #e2f0ff;
    text-align: right;
}

.message-header {
    margin-bottom: 5px;
}

/* Historique (timeline) */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    height: 100%;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: 50px;
    width: 30px;
    height: 30px;
    margin-left: -15px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    margin-left: 70px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.timeline-content h4 {
    font-size: 16px;
    margin-top: 0;
}

/* Tableaux */
.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 115, 183, 0.05);
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link {
    color: var(--primary-color);
}

/* Footer */
footer {
    margin-top: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .message-content {
        max-width: 70%;
    }
    
    .timeline-content {
        margin-left: 50px;
    }
}