h2 {
    margin-left: 2%;
    display: inline-block;
}

#navbar #resetBtn,
#navbar #match {
    position: relative;
    top: 40px;
}

#navbar {
    margin-bottom: 20px;
    display: block;
    background-color: #E9E9ED;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc !important;
}

.panel {
    position: absolute;
}

.panel-heading:hover {
    cursor: move;
}

.panel-heading .btn-group {
    float: right;
}

.panel-heading .btn-group .dropdown-menu {
    cursor: auto;
    float: right;
    min-width: 450px;
}

#windows-system .panel-body {
    height: 100%;
    padding: 0;
}

#windows-system {
    width: 100%;
    height: 100%;
    transition: margin-left .5s;
}

#windows-system .slider.slider-horizontal.slider-k-means {
    width: 100%;
}


.container {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 200%;
    padding-bottom: 100%;
    vertical-align: top;
    overflow: hidden;
}

.container .svg-content-responsive {
    position: absolute;
    top: 30px;
    left: 0;
}

.panel-heading .btn {
    float: right;
}

.panel-subtitle {
    margin-left: 34px;
    font-size: 14px;
}

i {
    position: absolute;
}

a {
    cursor: pointer;
    color: black;
}

a:hover,
a:focus,
a:active {
    color: black;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

.panel-heading .dropdown-menu>li {
    padding: 3px 20px;
}

.toolTip {
    /* Modern Apple-style tooltip design */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: absolute;
    display: none;
    width: auto;
    height: auto;

    /* Clean, light design with frosted glass effect */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Subtle border and modern shadow */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);

    /* Typography and spacing */
    color: #333;
    font-size: 13px;
    line-height: 1.6;
    font-weight: normal;
    text-align: left;
    padding: 12px 14px;

    /* Modern rounded corners */
    border-radius: 8px;

    /* Ensure it's always on top and doesn't interfere */
    z-index: 10000;
    pointer-events: none;

    /* Smooth appearance */
    transition: opacity 0.2s ease-in-out;
}

.toolTipHeatMap {
    /* Modern Apple-style tooltip for heatmap (larger content) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: absolute;
    display: none;
    width: auto;
    max-width: 350px;
    height: auto;

    /* Clean, light design with frosted glass effect */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Subtle border and modern shadow */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);

    /* Typography and spacing */
    color: #333;
    font-size: 12px;
    line-height: 1.5;
    font-weight: normal;
    text-align: left;
    padding: 12px 14px;

    /* Modern rounded corners */
    border-radius: 8px;

    /* Ensure it's always on top and doesn't interfere */
    z-index: 10000;
    pointer-events: none;

    /* Smooth appearance */
    transition: opacity 0.2s ease-in-out;
}

.toolTipCluster {
    z-index: 9998;
}

/* Ensure context menus render above tooltips */
#contextMenuScatterPlot,
#contextMenuTimeline,
#contextMenuDeputy,
#contextMenuPartyLegend {
    position: absolute;
    z-index: 10001;
}

/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   speak for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.panel .modal {
    display: none;
    position: relative;
    z-index: 9999;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, .8);
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
.panel.loading {
    overflow: hidden;
}

/* Anytime the body has the loading class, our
   modal element will be visible */
.panel.loading .modal {
    display: block;
}

#loading-project {
    height: 200%;
    width: 100%;
    z-index: 9999;
    position: absolute;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s;
}

#loading-project #greyScreen-project {
    height: 100%;
    width: 100%;
    background-color: black;
    position: absolute;
    opacity: 1;
}

#loading-project .gif {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 20%;
    color: white;
    text-align: center;
    font-size: xx-large;
}

#loading {
    height: 200%;
    width: 100%;
    z-index: 9000;
    position: absolute;
    top: 0;
    visibility: hidden;
}

#loading #greyScreen {
    height: 100%;
    width: 100%;
    background-color: black;
    position: absolute;
    opacity: 0.2;
}

#loading .gif {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    top: 20%;
    color: white;
    text-align: center;
    font-size: xx-large;
}

/* CSS for Datepicker div */
.input-daterange {
    background-color: #fff;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    color: #555;
    vertical-align: middle;
    border-radius: 4px;
    max-width: 100%;
    line-height: 22px;
    cursor: text;
    margin-bottom: 10px;
}

.svg-container {
    display: inline-block;
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* aspect ratio */
    vertical-align: top;
    overflow: hidden;
}

.svg-content-responsive {
    display: inline-block;
    position: absolute;
    top: 10px;
    margin-top: 10px;
    left: 0;
}

.btn-primary-outline {
    background-color: transparent;
    border-color: #ccc;
}

.btn-xlarge {
    padding: 18px 28px;
    font-size: 22px;
    line-height: normal;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
}

.modal-body {
    padding-left: 30%;
    padding-right: 30%;
}

/* Two image containers (use 25% for four, and 50% for two, etc) */
.column {
    float: left;
    width: 50%;
    padding: 5px;
}

/* Clear floats after image containers */
.row::after {
    content: "";
    clear: both;
    display: table;
}

.flag {
    cursor: pointer;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 5px 15px 2px rgb(0 0 0 / 30%);
    overflow-x: hidden;
    transition: 0.5s;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #0a0101;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.sidebar h2 {
    position: absolute;
    top: 15px;
    margin-left: 10px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
    padding: 0px;
}

.openbtn:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.fa-window-maximize {
    background: white;
    border-radius: 40%;
    height: 0.9em;
    position: absolute;
    clip: rect(2px, 30px, 26px, 0px);
}

.fa-window-maximize:hover {
    cursor: move;
}

.custom-icon {
    position: relative;
    top: 5px;
    display: inline-block;
    height: 24px;
    width: 24px;
    padding-left: 24px;
    -webkit-font-smoothing: antialiased;
}

.title-icon {
    margin-right: 5px;
    padding: 12px;
    border-style: solid;
    border-width: 2px;
}

.minimized-icon {
    position: absolute;
    padding: 12px;
    border-style: solid;
    border-width: 2px;
    cursor: move;
}

.icon-scatter-plot {
    background: url("https://img.icons8.com/material-rounded/24/000000/scatter-plot.png");
}

.icon-scatter-plot.minimized-icon {
    background-color: white;
}

.icon-time-line {
    background: url("https://img.icons8.com/material-rounded/24/000000/web-analystics.png");
}

.icon-time-line.minimized-icon {
    background-color: white;
}

.icon-chamber-infographic {
    background: url("../images/icons/chamber-infographic-icon.png");
}

.icon-chamber-infographic.minimized-icon {
    background-color: white;
}

.icon-network-graph {
    background: url("../images/icons/network-graph-chart-icon.png");
}

.icon-network-graph.minimized-icon {
    background-color: white;
}

.icon-map-roll-calls {
    background: url("../images/icons/map-roll-calls-icon.png");
}

.icon-map-roll-calls.minimized-icon {
    background-color: white;
}

.icon-cropped-time-line {
    background: url("../images/icons/cropped-time-line-icon.png");
}

.icon-cropped-time-line.minimized-icon {
    background-color: white;
}

.icon-bar-chart {
    background: url("../images/icons/bar-chart-icon.png");
}

.icon-bar-chart.minimized-icon {
    background-color: white;
}

.icon-force-layout {
    background: url("../images/icons/force-layout-icon.png");
}

.icon-force-layout.minimized-icon {
    background-color: white;
}

.icon-bubble-chart {
    background: url("../images/icons/bubble-chart-icon.png");
}

.icon-bubble-chart.minimized-icon {
    background-color: white;
}

.icon-line-chart {
    background: url("../images/icons/line-chart-icon.png");
}

.icon-line-chart.minimized-icon {
    background-color: white;
}

.hierarchy-black-transparent-icon {
    background: url("../images/icons/hierarchy-black-transparent.png");
}

.hierarchy-white-transparent-icon {
    background: url("../images/icons/hierarchy-icon-white-transparent-24x24.png");
}

.panel::after {
    content: "";
    border-radius: 5px;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 5px 15px 2px rgb(0 0 0 / 30%);
    opacity: 0;
    -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.panel:hover::after {
    opacity: 1;
}

.panel.panel-selected::after {
    opacity: 1;
}

#system-title {
    display: inline;
    position: relative;
    top: 10px;
}

#system-title h2 {
    color: #5C5C5C;
    font-size: 40px;
}

#statesFilter {
    float: right;
    position: relative;
    top: 40px;
}

.float-action-button {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.float-action-button button {
    cursor: pointer;
    width: 48px;
    height: 48px;
    background-color: #cb60b3;
    border: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .4);
    font-size: 24px;
    color: white;

    -webkit-transition: .2s ease-out;
    -moz-transition: .2s ease-out;
    transition: .2s ease-out;
}

.float-action-button button.main {
    position: absolute;
    width: 25px;
    height: 60px;
    background-color: #000000;
    left: -15px;
    top: 450px;
    z-index: 20;
    transition: margin-left .5s;
}

.float-action-button button.main:hover {
    color: white;
    outline: none;
    background-color: #18171b;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 1);
}

.sidebar-title {
    height: 95px;
    background-color: #e9e9ed;
    border-bottom: 1px solid #ccc !important;
    margin-bottom: 1px;
}