* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

h1, h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.login-box, .dashboard {
    display: none;
}

.login-box.active, .dashboard.active {
    display: block;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

button {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

.btn-logout {
    background: #f44336;
    float: right;
}

.btn-logout:hover {
    background: #da190b;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table th {
    background: #f8f9fa;
    font-weight: 600;
}

.stat {
    background: #4CAF50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.stat h3 {
    font-size: 42px;
    margin: 0;
    color: white;
}

/* CHATBOT DESIGN */
.chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: #2196F3;
    color: white;
    padding: 15px;
    border-radius: 12px 12px 0 0;
    font-weight: bold;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
}

.message.bot {
    background: #f0f2f5;
    align-self: flex-start;
}

.message.user {
    background: #dcf8c6;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    margin: 0 10px 0 0;
}

.section {
    margin: 30px 0;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Styles du formulaire de réclamation */
.complaint-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Badge pour le compteur de réclamations */
.badge {
    display: inline-block;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
}

/* Liste des réclamations */
.reclamations-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reclamation-item {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ff9800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reclamation-info {
    flex: 1;
}

.reclamation-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.reclamation-info small {
    display: block;
    color: #666;
    margin: 3px 0;
}

.reclamation-actions button {
    background: #f44336;
    padding: 6px 12px;
    font-size: 12px;
    margin-left: 10px;
}