/* agta_app/static/agta_app/style.css */

/* Custom styles for Bootstrap Navbar active link */
.navbar-nav .nav-link.active {
    font-weight: bold; /* Make the text bold */
    color: #007bff !important; /* A distinct blue color, Bootstrap's primary color. Use !important to override default styles if necessary */
    /* You could also add a background or border: */
    /* background-color: #007bff; */
    /* color: white !important; */
    /* border-bottom: 3px solid #007bff; */
}

/* Reduce card title font size */
.card-title {
    font-size: 1rem; /* Adjust this value as needed */
  }
  
/* Add padding to card body */
.card-body {
    padding: 0.5rem; /* Adjust this value as needed */
}

.chat-container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Position loading indicator inside chat box */
.loading-indicator-in-chat {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: white;
    padding: 10px;
    border-radius: 5px;
    position: relative;
}
.user-message {
    text-align: right;
    color: white;
    background: #007bff;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 0;
    display: inline-block;
}
.bot-message {
    text-align: left;
    color: black;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 0;
    display: inline-block;
}

.chat-input-area {
    display: flex;
    align-items: center;
}

#microphone-button {
    background-color: #eee;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 10px;
}

#microphone-button.listening {
    background-color: #007bff;
    /* Change color when listening */
    color: white;
}

.floating-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Ensure it's on top */
    width: 400px;
    max-width: 90%;
}

.close-button {
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    font-size: 1.5rem;
}

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

.widget-body {
    margin-bottom: 1rem;
}

/* Menu horizontal pour les types d'éléments */
.horizontal-menu {
    width: 100%;
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.element-navigation ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.element-navigation li {
    flex: 1;
    text-align: center;
}

.menu-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
}

.menu-item.active {
    border-bottom: 3px solid var(--bs-primary);
    color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Responsive pour le menu horizontal */
@media (max-width: 768px) {
    .element-navigation ul {
        flex-wrap: wrap;
    }

    .element-navigation li {
        flex-basis: 50%;
    }
}

@media (max-width: 480px) {
    .element-navigation li {
        flex-basis: 100%;
    }
}

/* Permission div styles */
#permission_div {
    display: none;
    width: 100%;
    padding: 15px;
    background-color: #e6f2ff;
    border-bottom: 1px solid #cce0ff;
}
  
.permission-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.permission-text {
    margin: 0;
}
  
.permission-button {
    border-radius: 12px;
    padding: 0 12px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
    margin-left: 5px;
}
  
.permission-button:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}
  
/* Token div styles */
#token_div {
    display: none;
}
  
#token {
    word-break: break-all;
}
  
/* Message div styles */
#send_message_div {
    margin-top: 20px;
}
  
#send_result {
    margin-top: 10px;
}
