.vis-item * {
    color: var(--color_sazerac_50);
}
/* Flexbox container */
.container {
    display: flex;
    flex-direction: row; /* Arrange items in a row */
}
.container .txt_center{
    text-align: center;
}
.container table{
    width: 50%!important;
}
/* Left column */
.left-column {
    padding: 1rem 0.5rem;
    flex: 0; /* Take up equal space */
    border-top: 2px solid #ccc; /* Visual separator */
    border-right: 2px solid #ccc; /* Visual separator */
}
.right-column select,
.left-column select{
    padding: 0.8rem;
    border-radius: 0.4rem;
    background-color: var(--color_sazerac_50);
    font-size: 0.8rem;
    -webkit-border-radius: 0.4rem;
    -moz-border-radius: 0.4rem;
    -ms-border-radius: 0.4rem;
    -o-border-radius: 0.4rem;
}
.right-column button, 
.left-column button{
    color: var(--color_white_50);
    cursor: pointer;
    background: var(--color_twine_4000);
    border: none;
    border-radius: 0.7rem;
    font-family: "Kanit Semibold";
    font-size: 1rem;
    height: auto;
    padding: 0.7rem;
    margin-top: 0.5rem;
    width: auto;
    text-shadow: 0 0 7px #00000096;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
/* Right column */
.right-column {
    padding-top: 1rem;
    padding: 1rem 0.5rem;
    border-top: 2px solid #ccc; /* Visual separator */
    flex: 2; /* Take up more space for visualizations */
}

/* Styling for the select and text in the left column */
.left-column form {
    margin-bottom: 20px;
}

.left-column p {
    color: var(--color_sazerac_50);
    font-size: 1rem;
    line-height: 1.6;
}

/* Styling for the visualization area */
.visualization {
    /* background-color: #f9f9f9; */
    background-color: #8b28c9b2;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Visualization grid layout */
.visualization-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
}
.vis-item {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.vis-item .select_x *{
    color : var(--color_sazerac_50);
    font-size: 1rem;
}
.vis-item .select_x label{
    display: flex;
    align-items: center;
    gap: 5px;
}
.vis-item .select_x{
    display: flex;
    gap: 1rem;
    align-items: center; 
}
.vis-item .select_x form{
    display: flex;
    gap: 0.5rem;
    align-items: center; 
}
.vis-item .select_x input {
    width: 15px;
    height: 15px;
    cursor: pointer;
}
.vis-item .select_x input:checked {
    border: none;
    accent-color: var(--color_red_orange_900);
}
.width_90 {
    width: 90%;
}
.full-width {
    width: 100%;
}
.half-width {
    width: calc(50% - 10px); /* Account for gap */
}
.width_70 {
    width: calc(70% - 10px); /* Account for gap */
}
.vis-item h3{
}
/* Chart containers */
.vis-item canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 400px; /* Limit maximum height */
}
#cuentas_anomalas{
    width: 100%;
    max-width: 300px;
}
/* Table styling */
.gridjs-container {
    width: 100% !important;
    max-height: 600px;
    overflow: auto;
}

/* Scatter plot controls */
.scatter-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.select_x {
    flex: 1;
}
th.gridjs-th{
    width: 125px !important;
    padding: 0.5rem !important;
    font-size: 1rem !important;
}
td.gridjs-td{
    padding: 0.5rem !important;
    font-size: 1rem !important;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.visualization-grid #dataForm{
    margin-top: 1rem;
}
.word-clouds-container{
    display: flex;
    justify-content: center;
    align-items: center;
}
.word-clouds-container .word-cloud-box{
    display: flex ;
    justify-content: center;
    align-items: center;
    width: 50%;
    flex-direction: column;
}
.vis-item .timeline{
    width: 100%;
    background: var(--color_silver_400);
    color: var(--color_steel_gray_950);
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}
.vis-item .timeline *{
    color: var(--color_steel_gray_950);
}
.vis-item .timeline .tweet{
    padding: 0rem;
    border-radius: 0.2rem;
    -webkit-border-radius: 0.2rem;
    -moz-border-radius: 0.2rem;
    -ms-border-radius: 0.2rem;
    -o-border-radius: 0.2rem;
    display: flex;
    gap: 0.5rem;
}
.vis-item .timeline .tweet::before{
    content: '\25CF';
    color: var(--color_silver_400);
    background: var(--color_steel_gray_950);
    display: flex;
    align-items: center;
    width: 10px;
    padding: 0rem 0.1rem;
}
.vis-item .timeline .tweet:first-child:before{
    border-radius: 0.5rem 0.5rem 0rem 0rem ;
    -webkit-border-radius: 0.5rem 0.5rem 0rem 0rem ;
    -moz-border-radius: 0.5rem 0.5rem 0rem 0rem ;
    -ms-border-radius: 0.5rem 0.5rem 0rem 0rem ;
    -o-border-radius: 0.5rem 0.5rem 0rem 0rem ;
}
.vis-item .timeline .tweet:last-child:before{
    border-radius: 0rem 0rem 0.5rem 0.5rem;
    -webkit-border-radius: 0rem 0rem 0.5rem 0.5rem;
    -moz-border-radius: 0rem 0rem 0.5rem 0.5rem;
    -ms-border-radius: 0rem 0rem 0.5rem 0.5rem;
    -o-border-radius: 0rem 0rem 0.5rem 0.5rem;
}
.vis-item .timeline .tweet:last-child .info-tweet{
    margin-bottom: 0rem;
}
.vis-item .timeline .tweet .info-tweet{
    padding: 1rem;
    background: var(--color_steel_gray_950);
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}
.vis-item .timeline .tweet *{
    color: var(--color_silver_400);
}

.tweet-header,
.tweet-text{
    margin-bottom: 0.2rem;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .left-column {
        border-right: none;
        border-bottom: 2px solid #ccc;
    }

    .half-width {
        width: 100%;
    }
}
@media (max-width: 991px) {
    th.gridjs-th {
        width: 100px !important;
    }
    #users_tweets th:nth-child(5),
    #users_tweets td:nth-child(5),
    #cuentas_anomalas th:nth-child(5),
    #cuentas_anomalas td:nth-child(5){
        display: none;
    }
    .scatter-controls{
        flex-direction: column;
    }
    .right-column select, 
    .left-column select{
        width: 100%;
    }
    .word-clouds-container{
        flex-wrap: wrap;
    }
    .word-clouds-container .word-cloud-box{
        width: 100%;
    }
}
@media (max-width: 600px) {
    #users_tweets th.gridjs-th {
        width: 100px !important;
    }
    #users_tweets th.gridjs-th {
        width: 70px !important;
    }
    #users_tweets th:nth-child(1){
        width: 100px !important;        
    }
    #cuentas_anomalas th:nth-child(3){
        display: none;
    }
    th.gridjs-th,
    td.gridjs-td{
        font-size: 0.8rem !important;
    }
}
@media (max-width: 500px) {
    .vis-item .select_x{
        flex-direction: column;
        align-items: flex-start;
    }
    #users_tweets th.gridjs-th{
        width: 55px !important;
    }
    #cuentas_anomalas th.gridjs-th{
        width: 55px !important;
    }
    #users_tweets th:nth-child(1),
    #cuentas_anomalas th:nth-child(1) {
        width: 80px !important;
    }
    #users_tweets th:nth-child(2){
        display: none;
    }
    .section-info-social-networks .container-info-social-networks .info-social-networks h2, 
    .section-info-social-networks .container-info-social-networks .info-social-networks h3 {
        font-size: 1.8rem!important;
    }
    .word-cloud-box #wc_pos,
    .word-cloud-box #wc_pos svg,
    .word-cloud-box #wc_neg,
    .word-cloud-box #wc_neg svg{
        width: 100%;
    }
    .word-cloud-box #wc_pos svg g{
        transform: translate(180px, 141px);
        -webkit-transform: translate(180px, 141px);
        -moz-transform: translate(180px, 141px);
        -ms-transform: translate(180px, 141px);
        -o-transform: translate(180px, 141px);
    }
    .word-cloud-box #wc_pos svg g:nth-child(9n){
    }

}