/* chatbot_styles.css - Estilos del chatbot institucional UNA Puno */

:root {
    --primary-dark: #003366;
    --primary-medium: #0042aa;
    --primary-light: #0060dd;
    --accent-color: #007bff;
    --bg-light: #f8f9fa;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-medium: #666666;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(3px);
    box-shadow: 3px 0 15px rgba(0, 0, 0, 0.4);
    border-right: 2px solid white;
    padding: 20px;
}

.image-modal-content {
    max-width: 100%;
    max-height: 90%;
    border-radius: 10px;
    border: 2px solid #ffffff44;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    background: rgba(0, 0, 0, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}


.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 360px;
    max-height: 520px;
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-light);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 51, 102, 0.1);
}

.chatbot-container.hidden {
    display: none;
}

.chat-button {
    position: fixed;
    bottom: 100px;
    right: 36px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-medium), var(--primary-dark));
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    z-index: 1001;
    animation: pulse 2.5s infinite;
}

.chat-header {
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-medium));
    color: var(--text-light);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin: 0;
}

.chat-body {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    background-color: var(--bg-light);
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    line-height: 1.5;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bot-message {
    background-color: #e9ecef;
    color: var(--text-dark);
    align-self: flex-start;
    border-left: 3px solid var(--primary-medium);
}
.bot-message img {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
    transition: transform 0.3s ease, max-height 0.3s ease;
    max-height: 200px;
    cursor: zoom-in;
    object-fit: contain;
}

.bot-message img.expanded-image {
    max-height: none;
    width: 100%;
    cursor: zoom-out;
    transform: scale(1.03);
}


.user-message {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: var(--text-light);
    margin-left: auto;
    border-top-right-radius: 0;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.quick-link {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    color: var(--text-light);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-link {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 12px;
    border-radius: var(--border-radius-md);
    margin: 10px 0;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.resource-link img {
    width: 45px;
    height: 45px;
    margin-right: 12px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.chat-input {
    display: flex;
    padding: 15px;
    background-color: var(--text-light);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    padding: 10px 18px;
    background: linear-gradient(to right, var(--primary-medium), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}
