:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #2196f3;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

html,
body {
    height: 100%;
}

.editable-suggestion {
    border: 1px solid #ffcc00;
    background-color: #fffbe6;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
}


.text-warning {
    /* color: white; */
    text-align: center;
}

.edit-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.edit-button:hover {
    background-color: #e0e0e0;
}

.button-opt {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.opt-buttons button {
    color: red;
}

.opt-buttons .active-toggle {
    /* background-color: limegreen; */
    color: greenyellow;
    border-color: #007bff;
}

.dynamic-field {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

.button {
    background-color: var(--secondary-color);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.chat-header {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 10px;
    padding: 1rem;
}

.chat-header h2 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
}

.chat-input {
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 24px;
    z-index: 2;
}

.chat-input>div {
    position: relative;
}

.file-instruc {
    color: white;
}

.file-info {
    color: #555;
    font-style: italic;
    margin-bottom: 4px;
}

.menu-opts {
    border: 1px solid #ccc;
    border: none;
    padding: 10px;
    z-index: 1000;
}

.menu-opts ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 0;
}


.menu-opts li {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 10px 15px;
    background-color: #e6f0ff;
    color: #004085;
    border: 1px solid #b8daff;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    user-select: none;
}

.menu-opts li:hover {
    background-color: #cce5ff;
}

/* Utilidad */
.hidden {
    display: none;
}

.chat-messages {
    height: 100%;
    max-height: 80vh;
    min-height: 250px;
    padding: 1rem;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

#codeModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#codeModal .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    /* min-width: 300px; */
    max-width: 20vw;
}

#codeModal .close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

#codeModal h3 {
    margin: 0;
    margin-bottom: 1rem;
}

#codeModal .input-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

#codeModal .input-container input {
    width: 2.5rem;
    font-size: 2rem;
    text-align: center;
    autocomplete: off;
    inputmode: numeric;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease;
}

#codeModal .input-container input:focus {
    border-color: #007bff;
    outline: none;
}

#codeModal .timer {
    margin-bottom: 1rem;
    font-weight: bold;
}

#codeModal .btn-primary {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#codeModal .btn-primary:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

#codeModal .btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    display: none;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-top: 5px;
}

.dropdown-menu {
    left: auto !important;
    /* width: 800px; */
    top: 90px !important;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    background-color: var(--light-gray);
}

.file-label {
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.input-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-buttons .action-buttons .button {
    font-size: 25px;
    border-radius: 30px;
    width: 3rem;
    height: 3rem;
    background: white;
    color: var(--accent-color);
    margin: 0 0 0 5px;
    float: right;
}

.hidden {
    display: none;
}

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.popup-content {
    background: #fff;
    max-width: 1400px;
    margin: 5vh auto;
    padding: 2em;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.logo img {
    height: 100px;
}

.input-query {
    width: 100%;
    height: 30px;
    border-radius: 7px;
    color: white;
    background: var(--secondary-color);
}

.input-query::selection {
    background-color: #a0c4ff;
    color: #000;
}

.input-query:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

.input-query::placeholder {
    color: lightblue;
}

.logout-section {
    float: right;
}

.message {
    margin-bottom: 10px;
    border-radius: 15px;
    width: fit-content;
    max-width: 90%;
}

.message-content {
    width: fit-content;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.pulse-message {
    color: #6c757d;
    border-radius: 15px 15px 15px 0;
    font-style: italic;
    animation: pulse 2s infinite alternate;
}

.user-message {
    margin-top: 10px;
    max-width: 1000px;
    margin-left: auto;
    text-align: right;
    background-color: var(--mdb-blue);
    color: white;
    border-radius: 15px 15px 0 15px;
    padding: 10px 15px;
    width: fit-content;
    margin-bottom: 10px;
}

.user-message .message-content {
    background-color: var(--accent-color);
    color: var(--white);
}

#menu-user {
    position: absolute;
    top: 100%;
    right: 0;
    /* background-color: #ffffff; */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

#menu-user .dropdown-item {
    padding: 10px;
    cursor: pointer;
}

#menu-user .dropdown-item:hover {
    background-color: #f1f1f1;
}

.btn-info {
    background: var(--accent-color);
    align-items: center;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.assistant-message {
    margin-right: auto;
}

.fa-circle-info {
    color: var(--accent-color);
}

.main-content {
    padding: 10px;
    height: 100%;
}

.chat-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.floating-chat {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    flex-direction: column;
    border: groove;
    overflow: hidden;
}

.chat-header-bar {
    position: relative;
    padding: 10px;
    background-color: var(--secondary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-header-bar #close-chat {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
}

.floating-chat div #close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
}

.floating-chat iframe {
    flex: 1;
    border: none;
    width: 100%;
    height: 100%;
}

#formulario-dinamico {
    display: flex;
    justify-content: center;
    position: relative;
    background: none;
    bottom: 15px;
}

.dynamic-field-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    /* padding: 10px; */
    /* position: absolute; */
    /* bottom: 135px; */
    justify-content: center;
}

.suggestion-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    position: absolute;
    width: 100%;
    bottom: 19vh;
    right: 0;
    justify-content: center;
}

/* .suggestion-bubbles .bubble { */
.bubble {
    background-color: #e3f2fd;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

/* .suggestion-bubbles .bubble:hover { */
.bubble:hover {
    background-color: #bbdefb;
}

.chat-toggle-btn {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 1055;
}

@media (max-width: 760px) {

    .suggestion-bubbles {
        bottom: 25vh;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        color: var(--light-gray);
    }

    100% {
        color: #343434;
    }
}