/* assets/style.css */

/* Couleur Basiya dial L'Anime (Vibrant) */
:root {
    --primary-color: #6a5acd; /* Violet vif */
    --secondary-color: #ff6347; /* Rouge/Orange */
    --background-light: #f4f6f9;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    background-color: var(--background-light);
    font-family: 'Inter', sans-serif;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 35px;
    background: white;
    border-radius: 15px; /* Bordures mdwra */
    box-shadow: var(--card-shadow); /* Ombre mzyana */
    transition: transform 0.3s ease-in-out;
}

.login-container:hover {
    transform: translateY(-5px); /* Animation khtiita dial Hover */
}

.login-title {
    color: var(--primary-color);
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style dial Les Inputs */
.anime-input {
    border: 2px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.anime-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 90, 205, 0.3); /* Effet lumineux */
}

/* Style dial L'Bouton */
.anime-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 12px;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.1s;
}

.anime-btn:hover {
    background-color: #584a9e; 
    transform: scale(1.01);
}

/* Style dial L'Alerts */
/* AJOUT STYLE CHAT */
.chat-container {
    padding: 10px;
    max-height: 400px; /* Bacha ykoun Scroll ila kan bezzaf dial notes */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    margin-bottom: 10px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.support-note { /* Notes dial Technicien/Admin */
    background-color: #dcf8c6; /* Vert clair / Success */
    margin-left: auto; /* Push vers la droite */
}

.client-note { /* Notes dial Client */
    background-color: #f1f0f0; /* Gris clair */
    margin-right: auto; /* Push vers la gauche */
}

.chat-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
    display: block;
}

.chat-private-tag {
    font-size: 0.7rem;
    color: #ff9800;
    font-weight: bold;
}

/* AJOUTS CSS pour un meilleur design dans les tables de gestion */
.management-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Ombre légère */
}

.management-card .card-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    font-weight: 700;
    font-size: 1.1em;
}

.acl-group-title {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
}

/* Style des Boutons d'Action (pour qu'ils soient plus visibles) */
.btn-action-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

 /* Styles pour les bulles de chat (pour view_ticket_client.php) */
 .chat-container {
    padding: 10px;
    max-height: 400px; 
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.chat-bubble {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    margin-bottom: 10px;
    line-height: 1.4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}

.support-note { 
    background-color: #dcf8c6; /* Vert clair */
    margin-left: auto; /* Push vers la droite */
}

.client-note { 
    background-color: #f1f0f0; /* Gris clair */
    margin-right: auto; /* Push vers la gauche */
}

.chat-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
    display: block;
}

.sidebar { 
    /* FIXED CSS */
    position: fixed; 
    top: 0;          
    left: 0;         
    
    height: 100vh; 
    width: 250px;
    background-color: #2c3e50; 
    padding-top: 20px; 
    color: #ecf0f1;
    z-index: 1030; 
}
.sidebar a { 
    color: #ecf0f1; 
    text-decoration: none; 
    padding: 10px 15px; 
    display: block; 
    transition: background-color 0.2s;
}
.sidebar a:hover { 
    background-color: #34495e; 
    color: #fff;
}

.main-content { 
    margin-left: 250px; 
    padding: 30px; 
}

/* Styles pour l'interface de Sévérité/Rôles (meilleur design) */
.management-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); 
}
.acl-group-title {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
}
.btn-action-group {
    display: flex;
    gap: 5px;
}
h2.display-5.text-parpal {
    color: #3E1E68;
}
div#severite-block {
    display: none !important;
}
img.logositecrm {
    width: 90%;
    margin: 17px 13px;
}