;;::-webkit-scrollbar{
    width: 10px;
    }
;;::-webkit-scrollbar-track{
    border-radius:10px;
    box-shadow: inset 0 0 5px #082032; 
}
;;::-webkit-scrollbar-thumb{
    background-color: #082032;
    border-radius: 10px;
}
;;::-webkit-scrollbar-thumb:hover{
    background-color: #245175;
    cursor: pointer;
}

body {
    background-color:#2C394B !important;
    font-family: 'Merriweather', serif;
}
.page .sidebar{
    height: 100vh;
    width: 250px;
    background:linear-gradient(35deg,#082032 ,#051a2b ) !important ;
    top: 0;
    left: 0;
    position: fixed;
    transition: all 0.7s;
    -webkit-transition: all 0.7s;

    overflow-x: hidden ;
    overflow-y: auto;
}
.page .content{
    margin-left: 250px;
    transition: all 0.7s ease;
}
body.active .page .sidebar {
    left: -250px;
}
body.active .page .content{
    margin-left: 0;
    width: 100%;
}
.sidebar-header{
    padding: 10px 15px;
}
.sidebar-logo-container{
    
    display: flex;
    justify-content: center;
}
.logo-container{
    max-width: 120px;
    
}
.logo-sidebar{
    width: 100%;
    height: auto;
}

.brand-name{
    text-align: center;
    color: white;
    margin-top: 10px;
    font-size: 13px;
    font-family: 'Merriweather', serif;
}
.navigation-list{
    list-style-type: none;
    padding: 0px 18px;
    margin-top: 30px;
    
}
.navigation-list-item{
    padding: 10px 15px 10px 15px;
    padding-right: 0px;
    border-radius: 8px;
    margin: 15px 0px;
    margin-right: 0px;
}
.navigation-list-item:hover {
    width: 100%;
    background-color: #fc4f46;
    box-shadow: 0 0 0.4em #f8655e;
    cursor: pointer;
}

.navigation-link{
    color: white ;
    font-size: 14px;
    letter-spacing: 0.1px;
    text-decoration: none;


}
.navigation-list-item:hover .navigation-link{
    color: white;
}
.navigation-list-item.active .navigation-link{
    width: 100%;
    color: #f8655e;
}
.navigation-list-item.active:hover .navigation-link{
    color: white;
}
.navigationBar{
    background-color: #082032;
    height: 50px;
    padding: 40px 0px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 2px -2px #f8655e;

}
.sidebarToggle{
    font-size: 16px;
    background-color: #051a2b;
    margin-left: -19px;
    z-index: 999;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.5s;
    -webkit-transition: all 0.5s;
}
.sidebarToggle:hover {
    color: white;
}
.sidebarToggle.active {
    margin-left: 10px;
}

/* =================================
   CHAT BUBBLE MASCOT STYLES
   ================================= */

.chat-bubble-container {
    position: fixed;
    bottom: 8px;
    right: 20px;
    z-index: 1000;
    font-family: 'Merriweather', serif;
}

/* Mascot Bubble */
.mascot-bubble {
    position: relative;
    width: 110px;
    height: 110px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mascot-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
    /* GIF puro sin efectos */
}

/* Pulse Animation */
.pulse-animation {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    animation: bounce 1s infinite;
    border: 4px solid white;
    box-shadow: 
        0 0 0 2px #ff4757,
        0 4px 12px rgba(255, 71, 87, 0.5);
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 120px;
    right: 0px;
    width: 380px;
    height: 460px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #082032, #051a2b);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f8655e;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-mascot {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #f8655e;
    object-fit: cover;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.status-indicator {
    font-size: 12px;
    color: #4ecdc4;
}

.chat-controls {
    display: flex;
    gap: 5px;
}

.minimize-btn, .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.minimize-btn:hover, .close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Chat Messages */
.chat-messages {
    height: 320px;
    overflow-y: auto;
    padding: 12px;
    background: #f8f9fa;
}

.message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    background: white;
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent white transparent transparent;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    margin-right: 0;
    margin-left: 10px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #f8655e, #fc4f46);
    color: white;
}

.user-message .message-content::before {
    left: auto;
    right: -8px;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent #f8655e;
}

.message-content p {
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.4;
    color: #333; /* Set text color to dark grey */
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Quick Actions */
.quick-actions {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-btn {
    background: #e8f4f8;
    border: 1px solid #d1ecf1;
    color: #0c5460;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-btn:hover {
    background: #f8655e;
    color: white;
    border-color: #f8655e;
}

/* Chat Input */
.chat-input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 15px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 12px;
    color: #666;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #f8655e;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

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

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #f8655e;
}

.send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8655e, #fc4f46);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-bubble-container {
        right: 15px;
        bottom: 15px;
    }
    
    .chat-window {
        width: 320px;
        height: 430px;
        right: -20px;
        bottom: 140px;
    }
    
    .chat-messages {
        height: 290px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: 300px;
        height: 410px;
        right: -15px;
        bottom: 130px;
    }
    
    .chat-messages {
        height: 270px;
        padding: 8px;
    }
    
}

/* Hide chat bubble on very small screens */
@media (max-width: 350px) {
    .chat-bubble-container {
        display: none;
    }
}

/* Custom Scrollbar for Chat Messages */
.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #f8655e;
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #fc4f46;
}

/* Scroll Indicator */
@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.scroll-indicator {
    transition: all 0.2s ease;
}

.scroll-indicator:hover {
    background: #fc4f46 !important;
    transform: translateY(-2px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 32, 50, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    border-color: #f8655e;
    border-right-color: transparent;
}

.loading-spinner h5 {
    margin-top: 20px;
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Merriweather', serif;
}