/* APT Map Modern Theme Enhancement */
:root {
  --primary-color: #00e5ff;
  --secondary-color: #7b68ee;
  --background-dark: #0a1929;
  --background-medium: #132f4c;
  --background-light: #173a5e;
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --accent-color: #ff4081;
  --success-color: #00c853;
  --warning-color: #ffc107;
  --danger-color: #f44336;
  --card-bg: rgba(19, 47, 76, 0.8);
  --card-border: rgba(0, 229, 255, 0.2);
  --card-hover: rgba(25, 62, 100, 0.8);
  --gradient-start: #0a1929;
  --gradient-end: #173a5e;
}

body {
  background: linear-gradient(135deg, var(--background-dark), var(--background-medium));
  color: var(--text-primary);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Modern Header */
.apt-header {
  background: rgba(10, 25, 41, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.apt-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.apt-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.apt-logo img {
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.apt-logo h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.apt-nav {
  display: flex;
  gap: 20px;
}

.apt-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.apt-nav a:hover {
  color: var(--primary-color);
  background: rgba(0, 229, 255, 0.1);
}

.apt-nav a.active {
  color: var(--primary-color);
}

.apt-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Map Container Enhancement */
#viewDiv {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

/* Control Panel */
.control-panel {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.control-panel h3 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 500;
}

/* Search Input */
input[type="text"], select {
  background: rgba(10, 25, 41, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--text-primary);
  padding: 10px 15px;
  border-radius: 6px;
  width: 100%;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

/* Buttons */
button {
  background: linear-gradient(135deg, var(--primary-color), #00b8d4);
  color: #121212;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover {
  background: linear-gradient(135deg, #00c8e6, #0097a7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

/* Chart Container */
#chart-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Data Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.data-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.data-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: var(--primary-color);
}

.data-card h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Footer */
.apt-footer {
  background: rgba(10, 25, 41, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
}

.apt-footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .apt-header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .apt-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .data-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--background-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Enhanced Side Menu */
#menu {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

#menu:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

#menu h2 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

#menu h2:hover {
  color: var(--secondary-color);
}

#menu h2::before {
  content: '\f0c9';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.9em;
  color: var(--primary-color);
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu li {
  margin-bottom: 8px;
}

#menu a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

#menu a:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Checkbox styling */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(10, 25, 41, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  margin-right: 10px;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #121212;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
}

/* Checkbox label styling */
label {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

label:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--text-primary);
}

/* Collapsible sections */
.menu-section {
  margin-bottom: 15px;
}

.menu-section h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 15px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-section h3::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.menu-section h3.collapsed::after {
  transform: rotate(-90deg);
}

.menu-section-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-section-content.collapsed {
  max-height: 0;
}

/* Search input in menu */
.menu-search {
  position: relative;
  margin-bottom: 15px;
}

.menu-search input {
  width: 100%;
  padding: 10px 15px 10px 35px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 25, 41, 0.7);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.menu-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.menu-search::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

/* Button styling in menu */
.menu-button {
  background: linear-gradient(135deg, var(--primary-color), #00b8d4);
  color: #121212;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.menu-button:hover {
  background: linear-gradient(135deg, #00c8e6, #0097a7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
}

/* Custom scrollbar for menu with many items */
.scrollable-menu {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.scrollable-menu::-webkit-scrollbar {
  width: 6px;
}

.scrollable-menu::-webkit-scrollbar-track {
  background: rgba(10, 25, 41, 0.3);
  border-radius: 3px;
}

.scrollable-menu::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
} 