@charset "UTF-8";

.section-toggle-btn {
  position: relative;
  width: 48px;
  height: 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.section-toggle-btn span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.section-toggle-btn.bg-green-500 {
  background-color: #22c55e;
}

.section-toggle-btn.bg-gray-300 {
  background-color: #d1d5db;
}

.section-toggle-btn span.translate-x-6 {
  transform: translateX(24px);
}

.section-toggle-btn span.translate-x-0-5 {
  transform: translateX(2px);
}

.section-not-available {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
}

.section-not-available i {
  font-size: 48px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.section-not-available h3 {
  font-size: 18px;
  color: #374151;
  margin-bottom: 8px;
}

.section-not-available p {
  font-size: 14px;
  color: #6b7280;
}

/* 表单元素兼容性样式 */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button {
  -webkit-appearance: button;
  -moz-appearance: button;
  appearance: button;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

.content-auto {
  content-visibility: auto;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-warning:hover {
  background-color: #d97706;
}

.btn-success {
  background-color: #10b981;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-info {
  background-color: #06b6d4;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-info:hover {
  background-color: #0891b2;
}

.btn-purple {
  background-color: #8b5cf6;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-purple:hover {
  background-color: #7c3aed;
}

.btn-orange {
  background-color: #f97316;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background-color: #ea580c;
}

.btn-pink {
  background-color: #ec4899;
  color: white;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-pink:hover {
  background-color: #db2777;
}

.btn-outline {
  background-color: white;
  color: #6b7280;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-outline-primary {
  background-color: white;
  color: #2563eb;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid #2563eb;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: #2563eb;
  color: white;
}

.btn-outline-danger {
  background-color: white;
  color: #ef4444;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid #ef4444;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: #ef4444;
  color: white;
}

.input-field {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.input-field:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: transparent;
}

.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 24px;
}

.hidden {
  display: none !important;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-width: 1280px;
  overflow-x: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.station-dropdown {
  overflow-y: scroll;
  overflow-x: hidden;
  height: 200px;
  max-height: 200px;
}

.station-dropdown::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  display: block;
}

.station-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.station-dropdown::-webkit-scrollbar-thumb {
  background: #9ca3af;
  border-radius: 4px;
  min-height: 20px;
}

.station-dropdown::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

#main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

#sidebar {
  flex-shrink: 0;
  width: 192px;
}

#main-content > div.flex-1 {
  display: flex;
  flex-direction: column;
  width: calc(100% - 192px);
  min-width: 1088px;
}

#sidebar-title, .sidebar-text {
  transition: opacity 0.3s ease, width 0.3s ease;
}

.p-4.border-b {
  transition: justify-content 0.3s ease;
}

/* 登录页面样式 */
.login-body {
  min-width: 1280px;
  overflow-x: auto;
  position: relative;
}

@media (max-width: 768px) {
  .login-body .md\:flex-row {
    flex-direction: row !important;
  }
  .login-body .md\:w-1\/2 {
    width: 50% !important;
  }
  .login-body .sm\:text-3xl {
    font-size: 1.875rem !important;
  }
}

/* 仪表盘页面样式 */
.dashboard-body main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.dashboard-body .module-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.dashboard-body .input-field {
  box-sizing: border-box;
}

.dashboard-body button {
  cursor: pointer;
}

.dashboard-body .sidebar-text {
  display: inline;
  pointer-events: auto;
}

.dashboard-body .nav-item button {
  pointer-events: auto;
  cursor: pointer;
  width: 100%;
}

.dashboard-body #sidebar-title {
  pointer-events: auto;
  cursor: pointer;
}

@media (max-width: 768px) {
  .dashboard-body .sidebar-text {
    display: inline;
  }
}

/* 设置页面样式 */
.settings-body .nav-tab {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.settings-body .nav-tab:hover {
  background-color: #f3f4f6;
}