:root {
    --primary-color: #1f2937;
    --secondary-color: #4f46e5;
    --background-color: #f9fafb;
    --text-color: #111827;
    --header-bg-color: #374151;
    --table-border-color: #e5e7eb;
    --cell-padding: 10px;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-family: "Roboto", sans-serif;
    --sidebar-width: 300px;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
}

.content {
    padding: 20px;
    background-color: var(--background-color);
    text-align: center;
    margin: 0 auto;
    max-width: calc(100% - var(--sidebar-width));
    transition: max-width 0.3s ease;
}

.content.expanded {
    max-width: 100%;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.button-bar {
    display: flex;
    justify-content: flex-start;
    margin: 15px 2px 20px 5px;
}

.pagination button {
    color: #e5e7eb;
    background-color: var(--primary-color);
    margin-top: 15px;
    cursor: pointer;
    border-radius: 2.5px;
}

.pagination button:disabled {
    color: #ccc;
    background-color: aliceblue;
    cursor: default;
    margin-top: 15px;
}

.button-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    margin-right: 10px;
    cursor: pointer;
    font-size: var(--font-size-base);
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.button-bar button i {
    margin-right: 5px;
}

/* Contenedor de la tabla */
.table-container {
    width: 100%;
    height: 750px;
    overflow-y: auto;
    border: 1px solid var(--table-border-color);
    border-radius: 8px;
    background-color: rgb(254, 254, 254);
    scrollbar-color: var(--primary-color) var(--background-color);
    scrollbar-width: thin;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-small);
}

tr:nth-child(even) {
    background-color: #d7e7ff;
}

th,
td {
    padding: var(--cell-padding);
    text-align: left;
    border-bottom: 1px solid var(--table-border-color);
    word-wrap: break-word;
}

th {
    background-color: var(--header-bg-color);
    color: white;
    font-weight: 500;
    font-size: var(--font-size-base);
    position: sticky;
    top: 0;
    z-index: 2;
}

.conversationId,
.summary {
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: -var(--sidebar-width);
    top: 0;
    width: var(--sidebar-width);
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 3;
    transition: right 0.3s ease;
    display: none;
}

.sidebar.active {
    display: block;
    right: 0;
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-button,
.reset-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    margin-top: 10px;
}

.reset-button {
    background-color: #e74c3c;
}

/* Columnas expandibles */
td.metaData,
td.summary {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
}

td.metaData.expanded,
td.summary.expanded {
    white-space: normal;
    text-overflow: clip;
    background-color: #f3f4f6;
}

td.metaData::after,
td.summary::after {
    content: "▼";
    font-size: 12px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

td.metaData.expanded::after,
td.summary.expanded::after {
    content: "▲";
}

.button-download {
    background-color: var(--primary-color);
}

#app {
    margin: 15px;
}



@media (max-width: 1024px) {

    .content {
        max-width: 100%;
        padding: 20px;
    }


    .table-container {
        height: 300px;
    }

    .button-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-bar button {
        margin-bottom: 10px;
        font-size: var(--font-size-small);
    }

    table {
        font-size: var(--font-size-small);
    }

    th,
    td {
        padding: 8px;
    }

    h2 {
        font-size: 1.2rem;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 1366px) {

    .content {
        max-width: 100%;
        padding: 20px;
    }

    .table-container {
        height: 400px;
    }

    table,
    th,
    td {
        padding: 8px;
        font-size: 11px;
    }



    h2 {
        font-size: 1.4rem;
    }

    .button-bar button {
        font-size: var(--font-size-base);
    }



}