/* Dashboard Base Styles */
body {
  font-family: Arial, sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
}

/* Navigation Styles */
.nav {
  background-color: #333;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.nav .dropdown {
  position: relative;
  display: inline-block;
}

.nav .dropbtn {
  color: #fff;
  background: none;
  border: none;
  font-size: 13px;
  padding: 2px 10px;
  cursor: pointer;
}

.nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 220px;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.nav .dropdown-content a {
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  font-size: 13px;
}

.nav .dropdown-content a:hover {
  background-color: #555;
}

.nav .dropdown:hover .dropdown-content {
  display: block;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-userinfo {
  font-size: 13px;
  margin-left: auto;
  color: #ccc;
  white-space: nowrap;
}

.nav a, .nav .dropbtn {
  color: #fff;
  margin-right: 10px;
  text-decoration: none;
  font-size: 13px;
}

.nav span {
  font-size: 13px;
  margin-left: auto;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Chart Container Styles */
.chart-container {
  min-height: 400px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 800px;
}

.chart-container-sm {
  height: 600px;
}

.chart-container-lg {
  width: 100%;
  max-width: 2200px;
  height: 800px;
  overflow-x: auto;
  margin: 0 auto;
  padding-bottom: 1rem;
}

.chart-container-lg canvas {
  width: 100% !important;
  min-width: 900px;
  height: 800px !important;
  display: block;
}

@media (max-width: 1200px) {
  .chart-container-lg {
    max-width: 100vw;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .chart-container-lg canvas {
    min-width: 700px;
    height: 400px !important;
  }
}

@media (max-width: 700px) {
  .chart-container-lg {
    max-width: 100vw;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    height: 300px;
  }
  .chart-container-lg canvas {
    min-width: 500px;
    height: 300px !important;
  }
  .burger-menu-btn {
    display: flex;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-links.show-nav {
    display: flex !important;
  }
  .nav-links a, .nav-links .dropbtn {
    font-size: 15px;
    padding: 8px 16px 8px 18px;
    text-align: left;
    width: 100%;
    margin: 0;
    background: none;
    border: none;
  }
  .nav-links .dropdown-content {
    left: 0;
    min-width: 100vw;
    background: #444;
    box-shadow: none;
  }
  .nav {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 4px;
  }
  .nav-userinfo {
    margin-left: 0;
    margin-top: 6px;
    align-self: flex-start;
    font-size: 12px;
    position: relative;
    z-index: 30;
  }
}

/* Common Form Styles */
.form-group {
  margin-bottom: 1em;
}

.form-label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.5em;
}

.form-input {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.25em;
}

.form-input-wide {
  width: 60%;
}

/* Common Button Styles */
.btn {
  padding: 0.5em 1em;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 0.25em;
}

.btn:hover {
  background-color: #45a049;
}

/* Common Alert Styles */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

.alert-success {
  margin-top: 1em;
  padding: 1em;
  background-color: #e7f4e4;
  color: #2b662b;
  border-left: 4px solid #4CAF50;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
  border-left: 4px solid #f59e0b;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* Common Layout Styles */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.content-container {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Common Text Styles */
.text-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.text-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.text-small {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Common Footer Styles */
.footer {
  text-align: center;
  padding: 1rem 0;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Error Message Styles */
.error-message {
  color: red;
  margin-bottom: 12px;
}

/* Container Styles */
.container-mt {
  margin-top: 1em;
}

/* Chart Canvas Styles */
.chart-canvas {
  width: 100%;
  height: 500px;
}

/* Chart Container Specific Styles */
.chart-container-aggregated {
  width: 80%;
  max-width: 1000px;
  margin: 20px auto;
}

.nav-separator {
  border-left: 1px solid #bbb;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
}

/* # Added: Burger menu styles */
.burger-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  z-index: 20;
  padding: 0;
  outline: none;
  box-shadow: none;
  transition: background 0.2s;
}
.burger-menu-btn:focus {
  outline: 2px solid #fff;
}
.burger-bar {
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s cubic-bezier(.4,2.3,.3,1), background 0.2s;
}
.burger-menu-btn.open .burger-bar {
  background: #fff;
}
.burger-menu-btn.open .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-menu-btn.open .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}
.burger-menu-btn.open .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 700px) {
  .burger-menu-btn {
    display: flex;
  }
  .nav-links {
    display: none !important;
  }
  .nav-links.show-nav {
    display: flex !important;
  }
  .nav {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 4px;
  }
  .nav-userinfo {
    margin-left: 0;
    margin-top: 6px;
    align-self: flex-start;
    font-size: 12px;
    position: relative;
    z-index: 30;
  }
} 