* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;

}

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: beige;
}

/* Header */
.dashboard-header {
    background: linear-gradient(135deg, #3a5334 0%, #a28c4b 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
}
.title-container {
    padding: 2rem 2rem;
}


.logo-container {
    position: absolute;
    right: 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: left;
    padding: 0.2rem;
}

.logo {
    height: 5rem;  /* Adjust as needed */
    width: auto;
    max-width: 12rem;
    object-fit: contain;
}

.logo:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}


.dashboard-header h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.dashboard-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Main Dashboard Layout */
.dashboard-main {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    padding: 1rem;
    height: calc(100vh - 5rem);
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Upper Section - Split between variable info and map */
.upper-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    height: calc(54vh - 6rem);
}

/* Variable Information Panel */
.alcaldia-section {
    display: flex;
    flex-direction: column; /* Arranges items in a column */
    padding: 0.5rem;
    row-gap: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.var-info-container {
    display: flex;
    flex-direction: column; /* Arranges items in a column */
    height: calc(50vh - 8rem); /* Example height for the container */
    padding: 0.5rem;
    row-gap: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alcaldia-variable {
    display: flex;
    flex-direction: column; /* Arranges items in a column */
    height: calc(54vh - 6rem); /* Example height for the container */
    row-gap: 1rem;

}

.var-info-heading {
    text-align: center;
}

#var-info-title {
    margin-bottom: 5px;
}

#choose_var {
    margin-bottom: 5px;
}

#choose_alcaldia {
    margin-bottom: 5px;
}

#var-info-data {
    margin-bottom: 5px;
}
#var-info-data dl {
    display: grid;
    grid-template-columns: auto auto;
    row-gap: 0;
    align-items: center;
    width: 20vw;
}

#var-info-data dt {
    background-color: #d1d1d1;
    color: black;
    text-align: right;
    padding-right: .25rem;
    width: 8vw;
    min-width: 120px;
}

#var-info-data dd {
    margin: 0;
    color: black;
    text-align: left;
    width: 12vw;
}

#var-info-desc {
    margin-bottom: 5px;
    height: calc(22vh - 6rem);
    overflow-y: auto;
    padding-right: 1rem;
    min-height: 50px;
}



/* Map Container */
.map-container {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: calc(54vh - 6rem);
}

.map {
    width: 100%;
    height: 100%;
}



/* Graph Section */
.graph-section {
    background: #dddddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    height: calc(48vh - 4rem);
}



.graph-container{
    background: #f8f9fa;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.x{
    flex-grow: 1;
    width: 100%;
}

#parcoords {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.graph-placeholder p {
    margin-bottom: 1rem;
    color: #6c757d;
    font-weight: bold;
}



/* Right Column */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.glifo-container {
    background: #dddddd;
    border-radius: 10px;
    padding-top: 0rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: calc(47vh - 2rem);
    display: flex;
    flex-direction: column;
}

#glifo_info {
    margin: 0;
    text-align: center;
    min-height: 1rem;
}

.site-info-panel-container {
    background: var(--color-primary);;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: calc(53vh - 6rem);
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

#site-name {
      text-align: center;
      background: var(--color-primary);
      color: white;
    }

#info-title {
      text-align: center;
      background: var(--color-primary);
      color: white;
    }

.site-info-panel {
    background: white;
    height: calc(52vh - 5rem);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-right: 1rem;
    row-gap: 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-content dl {
    display: grid;
    grid-template-columns: auto auto;
    row-gap: 0;
    align-items: center;
}

.category-content dt {
    background-color: #d1d1d1;
    color: black;
    text-align: right;
    padding-right: .25rem;
    width: 14vw;
    word-wrap: break-word;
}

.category-content dd {
    margin: 0;
    color: black;
    text-align: left;
    width: 17vw;
    word-wrap: break-word;
    align-items: center;
}

/* Switch Styles */

#toggle-container {
    display: flex;
    flex-direction: row-reverse;
    margin-top: auto;
}

.toggle-switch {

    align-self: flex-start;
    gap: 8px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: row;
}

.toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-input:checked + .toggle-slider {
    background-color: var(--color-primary);
}

.toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--color-primary), 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.toggle-input:disabled + .toggle-slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}

.toggle-input:disabled + .toggle-slider:before {
    background-color: #f5f5f5;
}

.toggle-label {
    font-size: 14px;
    color: #333;
    user-select: none;
}

/* Different sizes */
.toggle-switch.small .toggle-slider {
    width: 40px;
    height: 20px;
}

.toggle-switch.small .toggle-slider:before {
    width: 16px;
    height: 16px;
    transform: translateX(0);
}

.toggle-switch.small .toggle-input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-switch.large .toggle-slider {
    width: 60px;
    height: 30px;
}

.toggle-switch.large .toggle-slider:before {
    width: 24px;
    height: 24px;
    transform: translateX(0);
}

.toggle-switch.large .toggle-input:checked + .toggle-slider:before {
    transform: translateX(30px);
}


/* categories and variables */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between badge and icon */
}

.category {
    margin-bottom: 1px;
}
.category-header {
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-weight: bold;
    padding-left: 1rem;
    display: flex;
    justify-content: space-between; /* This pushes items to edges */
    align-items: center;
}
.category-header:hover {
    background-color: #e0e0e0;
}
.category-content {
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    display: none;
}
.category-content.show {
    display: block;
}
.variable-item {
    padding: 8px 12px;
    margin: 5px 0;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.collapse-icon {
    transition: transform 0.3s;
}
.category-header.active .collapse-icon {
    transform: rotate(180deg);
}

/* help video */
#trigger-modal h3:first-child {
    margin-top: 0;
}

.modal-footer {
    display: flex;
    justify-content: end;
}

.help-video {
    width: 80%;
}

#help-btn {
    position: fixed; /* Positions the button relative to the viewport/window */
    bottom: 2.5rem;    /* Places it 20 pixels from the bottom of the screen */
    right: calc(35vw + 20px);     /* Places it 20 pixels from the right of the screen */
    z-index: 50;
    cursor: pointer;
}


@media (max-height: 800px) {
  #var-info-data {
    display: none; /* Hides the div */
  }
}
@media (max-height: 676px) {
  #var-info-desc {
    display: none; /* Hides the div */
  }
}

@media (max-width: 4000px) {
    .logo {
        height: 6.3rem;
        max-width: 19rem;
    }
    .title-container {
        padding: 2.7rem 2.7rem;
    }
}

@media (max-width: 3000px) {
    .logo {
        height: 5.5rem;
        max-width: 15rem;
    }
    .title-container {
        padding: 2.5rem 2.5rem;
    }
}

@media (max-width: 2300px) {
    .logo {
        height: 4.8rem;
        max-width: 13rem;
    }
    .title-container {
        padding: 2rem 2rem;
    }
}


@media (max-width: 1700px) {

    .logo {
        height: 4.2rem;
        max-width: 11rem;
    }
    .title-container {
        padding: 1.5rem 1.5rem;
    }
}
@media (max-width: 1250px) {

    .logo {
        height: 3.0rem;
        max-width: 10rem;
    }
    .title-container {
        padding: 1rem 1rem;
    }
}
