
:root {
    --light-grey: #ccd0d4;
    
  }


[data-bs-theme="custom-light"] {
    
  

    body{

        
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity));
       
      
    }

    .navbar{

        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity));
        color: black;
        
    }

    .sidebar {
   
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-secondary-bg-rgb), var(--bs-bg-opacity));
        color: black;
       
    }

    .sidebar-active{
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity));
    }

    .nav-item>a{
        color: black;
    }
    
   
  }



  [data-bs-theme="custom-dark"] { 
    
  

    body{

        
        --bs-bg-opacity: 0.9;
        background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
        color: var(--light-grey) !important;
    }

    .navbar{

        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
        color: var(--light-grey) !important;
        
    }

    .sidebar {
   
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
        color: var(--light-grey) !important;
        
    }

    .sidebar-active{
      
        background-color: #373a3e;

    }
    
    .nav-item>a{
        color: var(--light-grey) !important;
    }

    .custom-container{
        --bs-bg-opacity: 0.8;
        background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
        color: var(--light-grey) !important;

    }

    input{

        --bs-bg-opacity: 0.8;
        background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
        color: var(--light-grey) !important;
        border-color: #4f5458;


    }

    .table{
        --bs-bg-opacity: 0.8;
        --bs-table-color: var(--light-grey);
        --bs-table-bg:rgba(var(--bs-dark-rgb), var(--bs-bg-opacity));
    }
    
   
  }






.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#fileInput {
    display: none;
}

.display-none{
    display: none;
}

.modal-body {
    max-height: 300px;
    overflow-y: auto;
}

.chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

/*desde aqui*/
#chat-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 350px !important;
    height: 500px !important;
    background: white !important;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    display: flex;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 1000 !important;
    font-family: Arial, sans-serif !important;
}

#chat-header {
    background: #4CAF50 !important;
    color: white !important;
    padding: 15px !important;
    font-weight: bold !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#chat-close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

#chat-messages {
    flex: 1 !important;
    padding: 15px !important;
    overflow-y: auto !important;
    background: #f9f9f9 !important;
}

.message {
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
    border-radius: 18px !important;
    max-width: 80% !important;
    word-wrap: break-word !important;
}

.user-message {
    background: #e3f2fd !important;
    margin-left: auto !important;
    border-bottom-right-radius: 5px !important;
}

.bot-message {
    background: #f1f1f1 !important;
    margin-right: auto !important;
    border-bottom-left-radius: 5px !important;
}

#chat-input-container {
    display: flex !important;
    padding: 10px !important;
    border-top: 1px solid #ddd !important;
    background: white !important;
}

#chat-input {
    flex: 1 !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    outline: none !important;
}

#chat-send {
    margin-left: 10px !important;
    padding: 10px 15px !important;
    background: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    cursor: pointer !important;
}

#chat-send:hover {
    background: #45a049 !important;
}

/* Botón para abrir el chat */
#chat-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    background: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    z-index: 999 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
}

.typing-indicator {
    display: inline-block !important;
    padding: 8px 12px !important;
    background: #f1f1f1 !important;
    border-radius: 18px !important;
    border-bottom-left-radius: 5px !important;
}

.typing-dot {
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    background: #666 !important;
    border-radius: 50% !important;
    margin: 0 2px !important;
    animation: typingAnimation 1.4s infinite ease-in-out !important;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s !important;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s !important;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s !important;
}

@keyframes typingAnimation {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}