.site-header {
    padding: 20px 60px;
    border-bottom: 1px solid #ccc;
}
.header-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.logo-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo {
    width: auto;
    height: auto;
    object-fit: contain;
}
.header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 30px;
}
.header-title {
    font-weight: bold;
    font-size: 1.4em;
}
.header-subtitle {
    font-size: 0.8em;
    font-weight: bold;
    color: #555;
}
*,
*::before,
*::after {
    box-sizing: border-box; 
}
html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden; 
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Roboto, Helvetica, Arial, sans-serif; 
    background-color: white;
    
}

.app-container { 
    display: block; 
    width: 100%; 
    overflow-x: hidden; 
    min-height: 100vh; 
    
}
.sidebar { display: none; } 
.control-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.control-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #2c3e50; font-size: 0.9rem;}

.selector-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    max-width: 800px;
}
.selector-item {
    flex: 1;
}
select { 
    width: 100%;
    padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; background-color: #fafafa; outline: none; transition: border 0.3s;
}
.main-content { 
    
    padding: 30px 60px; 
    overflow-y: auto; 
    max-width: 1300px; 
    margin: 0 auto; 
}
.header-content { margin-bottom: 25px; padding-bottom: 15px; }
.header-content h2 { margin: 0; color: #2c3e50; font-size: 2rem; }
.header-content .subtitle { color: #7f8c8d; margin-top: 5px; font-size: 1.1rem; }
.badge { display: inline-block; padding: 4px 8px; background: #3498db; color: white; border-radius: 4px; font-size: 0.8rem; vertical-align: middle; margin-left: 10px; }
.badge-dept { background: #2c3e50; }

.charts-grid { 
    display: grid; 
    
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
    gap: 25px; 
}
.chart-card { 
    background: white; 
    padding: 15px; 
    border-radius: 8px; 
}
.chart-title { font-weight: 600; color: #555; margin-bottom: 10px; text-align: center; }
.plotly-graph-div { 
    width: 100%; 
    height: 350px; 
    
}

@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
        position: relative;
    }

    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-card {
        padding: 15px;
        margin-bottom: 20px;
        height: auto !important;
    }

    .plotly-graph-div {
        width: 100% !important;
        min-height: 350px;
    }
}

#loadingMessage { padding: 10px; text-align: center; color: #32c256; font-weight: bold; }
.chart-container {
    width: 100%;
    min-width: 300px;
    margin-bottom: 20px;
}
.plotly-graph-div {
    width: 100% !important; 
    height: 100% !important; 
}	

.footer {
    background: #fff;
    font-family: Arial, sans-serif;
    padding: 40px 0; 
    overflow-x: hidden; 
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; 
}

.footer-content::before {
    content: "";
    display: block;
    border-top: 1px solid #ccc;
    margin: 20px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%); 
}

.footer-top {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    width: auto;
}

.footer-text-block {
    text-align: left;
    max-width: 50%;
    margin-left: auto; 
    margin-right: 0;
}

.footer-center-logo {
    width: 100%;
    height: auto;
    display: block;
}

.footer-phrase {
    font-weight: normal;
    font-size: 14px;
    margin: 10px 0 5px 0;
}
.footer-link {
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

.footer-bottom {
    padding-top: 10px;
}

.footer-mentions {
    display: block;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
    text-decoration: none;
}
.footer-mentions:hover { text-decoration: underline; }

.footer-license {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}
.footer-license a {
    color: #888;
    text-decoration: underline;
}
@media (max-width: 767px) {
    .main-content { padding: 20px 10px !important; }
    
    .charts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .chart-card {
        padding: 10px !important;
        margin-bottom: 30px !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .plotly-graph-div {
        width: 100% !important;
        height: 350px !important;
    }
}
.sub-nav {
  display: flex;
  justify-content: flex-start;   
  max-width: 100%;                
  gap: 20px;                     
  padding: 10px 0;
  margin-left: 60px;             
  position: relative;            
}

.sub-nav a {
  text-decoration: none;
  font-size: 0.8em;
  font-weight: bold;               
  color: #333;
  padding: 15px 15px;             
  border-radius: 4px;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  z-index: 1;
}

.sub-nav a::before {
  content: "";
  position: absolute;
  top: 0;                         
  left: 0;
  width: 100%;
  height: 100%;                   
  background: #eee;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 4px;
  z-index: -1;                     
}

.sub-nav a:hover::before {
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5em;
  padding: 10px 20px;
  background-color: #eee;
  border-radius: 4px;
  user-select: none;
  margin-bottom: 10px;
}


@media (max-width: 768px) {
  .sub-nav {
    display: none;      
    flex-direction: column;
    gap: 10px;
  }
  .mobile-menu-toggle {
    display: block;
  }
}


.sub-nav.active {
  display: flex;
  flex-direction: column;
}