* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
  background-color: #f5f5f5;
  color: #2e2e38;
}

.app-container {
  display: flex;
  height: 100vh;
}

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

.header-logo {
  background-color: #1a1a24;
  border-color: #000;
  border-style: none;
  border-width: 0;
  display: flex;
  height: 2.8571428571rem;
  min-width: 2.8571428571rem;
  width: 2.8571428571rem;
}

.header-logo a {
  display: inline-flex;
  height: 100%;
  padding: 0.3571428571rem 5px;
  text-decoration: none;
  width: 100%;
  align-items: center;
  border-radius: 0.1785714286rem;
  box-sizing: border-box;
  justify-content: center;
}

.app-title {
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.icon {
  font-size: 20px;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Top Header */
.top-header {
  background-color: #ffffff;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #747480;
}

.breadcrumb a {
  color: #747480;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #2e2e38;
}

.separator {
  color: #c4c4c4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  font-size: 14px;
  color: #747480;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0e0e0;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2e2e38;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.more-menu {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #747480;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Settings Container */
.settings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  width: 100%;
}

.settings-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #2e2e38;
  margin-top: 25px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 32px;
}

.tab {
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 15px;
  color: #747480;
  cursor: pointer;
  position: relative;
  font-weight: 500;
}

.tab.active {
  color: #2e2e38;
}

.tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #2e2e38;
}

/* Profile Image Section */
.profile-image-section {
  position: relative;
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.profile-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.image-toggle {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.toggle-dot {
  width: 20px;
  height: 20px;
  background-color: #2e2e38;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* Personal Info */
.personal-info {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2e2e38;
}

.section-description {
  font-size: 14px;
  color: #747480;
  margin-bottom: 24px;
}

.info-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #747480;
  font-size: 18px;
}

.form-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  color: #2e2e38;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #2e2e38;
}

.form-input::placeholder {
  color: #c4c4c4;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-secondary {
  background-color: #f5f5f5;
  color: #2e2e38;
  border: 1px solid #e0e0e0;
}

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

.btn-primary {
  background-color: #2e2e38;
  color: #ffffff;
}

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

/* Design Section */
.design-section {
  background-color: #ffffff;
  padding: 32px;
  border-radius: 12px;
}

.section-label {
  font-size: 12px;
  color: #747480;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.design-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2e2e38;
}

.design-description {
  font-size: 14px;
  color: #747480;
  line-height: 1.6;
}

footer {
  background-color: #fff;
  border-color: #e6e6e9;
  border-width: 1px 0 0 0;
  padding-top: 0.7142857143rem;
  padding-right: 2.2857142857rem;
  padding-bottom: 0.7142857143rem;
  padding-left: 2.2857142857rem;
  color: #2e2e38;
}

.text-link {
  color: #2e2e38;
  display: inline-flex;
  font-style: normal;
  background: transparent;
  outline: none;
  position: relative;
  text-decoration: none;
  align-items: center;
  border: none;
  padding: 0px;
  border-radius: 2px;
  font-size: 14px;
}

.body-3-light {
  font-weight: 300;
  font-size: 0.857rem;
}

.mt-5 {
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .settings-container {
    padding: 20px 16px;
  }

  .profile-image {
    height: 200px;
  }

  .tabs {
    gap: 16px;
  }

  .tab {
    font-size: 14px;
  }
}
/* Status Dashboard Styles */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.status-card, .subsystem-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.subsystem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.subsystem-card h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2e2e38;
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.up {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.degraded {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.down {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.status-detail:last-child {
    border-bottom: none;
}

.status-detail-label {
    color: #666;
    font-weight: 500;
}

.status-detail-value {
    color: #2e2e38;
    font-weight: 600;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-icon.up {
    background-color: #28a745;
}

.status-icon.degraded {
    background-color: #ffc107;
}

.status-icon.down {
    background-color: #dc3545;
}

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FFE600;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.refresh-info {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 12px;
}

/* Code Block Styles */
.code-block-container {
    background: #2e2e38;
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.code-block-header {
    background: #1a1a24;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a3a48;
}

.code-block-header span {
    color: #a8a8b8;
    font-size: 13px;
    font-weight: 500;
}

.copy-btn {
    background: transparent;
    border: 1px solid #4a4a58;
    color: #a8a8b8;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #3a3a48;
    border-color: #FFE600;
    color: #FFE600;
}

.copy-btn.copied {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.code-block {
    background: #2e2e38;
    color: #e8e8e8;
    padding: 20px;
    margin: 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Configuration Section Styles */
.config-section {
    margin-top: 16px;
}

.config-title {
    font-size: 16px;
    font-weight: 600;
    color: #2e2e38;
    margin: 0 0 12px 0;
}

.config-description {
    color: #666;
    margin: 0 0 16px 0;
    font-size: 14px;
}

/* Parameter Table Styles */
.param-table-container {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.param-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.param-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #2e2e38;
    white-space: nowrap;
}

.param-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
}

.param-table tr:last-child td {
    border-bottom: none;
}

.param-table tr:hover {
    background: #f8f9fa;
}

.param-table .section-header {
    background: #e9ecef;
    font-weight: 600;
}

.param-table .section-header:hover {
    background: #e9ecef;
}

.param-table .section-header td {
    padding: 10px 16px;
    color: #2e2e38;
    border-bottom: 1px solid #dee2e6;
}

.param-table code {
    background: #f8f9fa;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #e83e8c;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.required {
    background: #f8d7da;
    color: #721c24;
}

.badge.optional {
    background: #d4edda;
    color: #155724;
}

.config-table {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.config-row {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.config-row:last-child {
    border-bottom: none;
}

.config-key {
    flex: 0 0 250px;
    font-weight: 600;
    color: #2e2e38;
}

.config-key code {
    background: #2e2e38;
    color: #FFE600;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
}

.config-value {
    flex: 1;
    color: #666;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 16px;
    margin-top: 20px;
    border-radius: 4px;
}

.info-box a {
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
}

.info-box a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .config-row {
        flex-direction: column;
        gap: 8px;
    }

    .config-key {
        flex: none;
    }
}

/* Technology Links */
.tech-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #2e2e38;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tech-link:hover {
    background: #0078D4;
    color: white;
    border-color: #0078D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.2);
}

.tech-link svg {
    flex-shrink: 0;
}

