/* ===== RESET E VARIÁVEIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores principais */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary-color: #10b981;
  --secondary-hover: #059669;

  /* Cores de fundo */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-dark: #1e293b;
  --bg-sidebar: #0f172a;

  /* Cores de texto */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;

  /* Cores de estado */
  --success-color: #10b981;
  --success-bg: #d1fae5;
  --error-color: #ef4444;
  --error-bg: #fee2e2;
  --warning-color: #f59e0b;
  --warning-bg: #fef3c7;

  /* Bordas e sombras */
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Transições */
  --transition: all 0.2s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
}

/* ===== ESTILOS GLOBAIS ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  /* display: flex; */
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 23vw;
  background: linear-gradient(135deg, var(--bg-sidebar) 0%, #334155 100%);
  color: var(--text-white);
  padding: 1rem 1rem;
  box-shadow: var(--shadow-lg);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.soap-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.sidebar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-section:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translate3d(0, -2px, 0);
  will-change: transform, background-color;
}

.upload-section.dragover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--primary-color);
  transform: scale(1.02);
}

.upload-section h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.upload-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.file-input {
  position: relative;
}

.file-label {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.file-label:hover {
  background: var(--primary-hover);
  transform: translate3d(0, -1px, 0);
  box-shadow: var(--shadow-md);
  will-change: transform, background-color, color, box-shadow;
}

#wsdl-file {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ===== NAVEGAÇÃO ===== */
.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.5rem;
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  /* overflow: hidden; */
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  transform: translate3d(4px, 0, 0);
  will-change: transform, background-color, color;
}

.nav-link.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  border-left: 2px solid var(--border-color);
}

.nav-link.active::before {
  display: none;
}

.nav-menu li a {
  text-decoration: none;
}

/* ===== DROPDOWN DE OPERAÇÕES ===== */
.services-dropdown {
  /* max-height: 100px; */
  transition: max-height 0.3s ease-in-out;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
  padding-right: 0.5rem;
  margin-left: 10px;
  max-width: max-content;
  /* overflow: visible; */
}

.services-dropdown.show {
  border-left: 2px solid var(--border-color);
  /* max-height: 400px; */
  /* padding-right: 1rem; */
  /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
  /* color: var(--text-white);
  box-shadow: var(--shadow-md);
  border-left: 2px solid var(--border-color) */
  /* overflow: visible; */
}

.service-item {
  margin-bottom: 0.5rem;
  /* overflow: visible; */
}

.service-name {
  padding: 1rem 0.3rem;
  cursor: pointer;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-radius: var(--border-radius);
  border-bottom: 2px solid var(--border-color);
}

.service-name:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.expand-icon {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.expand-icon.rotated {
  transform: rotate(90deg);
}

.endpoints-list {
  max-height: 0;
  transition: max-height 0.3s ease-in-out;
  padding-left: 1rem;
  overflow-x: auto;
}

.endpoints-list.show {
  max-height: 100%;
  padding: 0.25rem 0 0.25rem 1rem;
}

.endpoints-list::-webkit-scrollbar {
  width: 6px;
}

.endpoints-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.endpoints-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.endpoints-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.endpoint-item {
  padding: 0.3rem 1rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  margin-bottom: 0.25rem;
}

.endpoint-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  transform: translate3d(4px, 0, 0);
  will-change: transform, background-color, color;
}

.endpoint-item.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
  border-left: 2px solid var(--border-color)
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.main-content {
  flex: 1;
  margin-left: 23vw;
  padding: 2rem;
  background: var(--bg-secondary);
  min-height: 70vh;
}

.content-header {
  background: var(--bg-primary);
  padding: 0.7rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary-color);
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.content-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ===== SEÇÕES DE CONTEÚDO ===== */
.section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ===== CARDS E CONTAINERS ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.info-card {
  background: var(--bg-primary);
  background: linear-gradient(135deg, #eaeef7 0%, #8fd1bb 100%);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translate3d(0, -2px, 0);
  will-change: transform, box-shadow;
}

.info-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.info-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

.scroll-container {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.scroll-container::-webkit-scrollbar {
  width: 4px;
}

.scroll-container::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 2px;
}

/* ===== ESTADOS DE LOADING E ERROR ===== */
.loading, .error, .success {
  text-align: center;
  padding: 2rem 2rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.loading h3 {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.loading p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.error {
  border-left: 4px solid var(--error-color);
  background: var(--error-bg);
}

.error h3 {
  color: var(--error-color);
}

.success {
  margin-bottom: 1rem;
  border-left: 4px solid var(--success-color);
  background: var(--success-bg);
}

.success h3 {
  color: var(--success-color);
}

/* ===== OVERVIEW DE SERVIÇOS ===== */
.services-overview {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.services-overview h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-overview-item {
  background: var(--bg-tertiary);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.service-overview-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translate3d(0, -2px, 0);
  box-shadow: var(--shadow-md);
  will-change: transform, background-color, color, box-shadow;
}

.service-overview-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-overview-details {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== DETALHES DE OPERAÇÕES ===== */
.operation-details {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.operation-title {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-white);
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.operation-details .info-grid {
  padding: 2rem;
  margin-bottom: 0;
}

/* ===== SEÇÕES DE PARÂMETROS ===== */
.parameters-section {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
}

.parameters-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.parameter-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.parameter-item:hover {
  box-shadow: var(--shadow-sm);
}

.parameter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  /* cursor: pointer; */
  background: var(--bg-primary);
  transition: var(--transition);
}

.parameter-header:hover {
  background: var(--bg-tertiary);
}

.parameter-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.parameter-type {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: var(--bg-tertiary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.parameter-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.required {
  background: var(--error-bg);
  color: var(--error-color);
}

.badge.optional {
  background: var(--warning-bg);
  color: var(--warning-color);
}

.badge.nullable {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.7rem;
}

.parameter-details {
  /* max-height: 0; */
  overflow: auto;
  transition: max-height 0.3s ease-in-out;
  background: var(--bg-secondary);
  display: none;
}

.parameter-details.show {
  /* max-height: 100vh; */
  padding: 1rem 1.5rem;
  display: block;
}

.parameter-description {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.complex-object {
  border-left: 2px solid var(--border-color);
  padding-left: 1rem;
}

.nested-parameter {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.nested-parameter .parameter-header {
  padding: 0.5rem;
  background: var(--bg-secondary);
}

.nested-parameter .parameter-name {
  font-size: 0.9rem;
}

.nested-parameter .parameter-type {
  font-size: 0.8rem;
}

/* ===== SEÇÕES DE EXEMPLO ===== */
.example-section {
  border-top: 1px solid var(--border-color);
  padding: 2rem;
}

.example-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.code-block {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0 1.5rem;
  border-radius: var(--border-radius);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow: auto;
  box-shadow: var(--shadow-sm);
  border: 1px solid #334155;
}

.code-block::-webkit-scrollbar {
  height: 8px;
}

.code-block::-webkit-scrollbar-track {
  background: #334155;
  border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb {
  background: #64748b;
  border-radius: 4px;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ===== SYNTAX HIGHLIGHTING ===== */
.xml-tag {
  color: #60a5fa;
}

.xml-attribute {
  color: #fbbf24;
}

.xml-text {
  color: #34d399;
}

.xml-comment {
  color: #9ca3af;
  font-style: italic;
}

.code-optional {
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
  }

  .main-content {
    margin-left: 280px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.5rem;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  /* .content-header {
    padding: 0.3rem;
  } */

  .content-header h1 {
    font-size: 1.5rem;
  }

  .parameters-section,
  .example-section {
    padding: 1.5rem;
  }

  .operation-title {
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
  }

  .code-block {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 1rem;
  }

  .main-content {
    padding: 0.75rem;
  }

  /* .content-header {
    padding: 1rem;
  } */

  .info-card {
    padding: 1rem;
  }

  .parameter-header {
    padding: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .parameter-badges {
    align-self: flex-end;
  }
}

/* ===== ANIMAÇÕES E EFEITOS ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading h3 {
  animation: pulse 2s infinite;
}

@keyframes slideIn {
  from {
    transform: translate3d(-20px, 0, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.nav-item {
  animation: slideIn 0.3s ease-out;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
.nav-link:focus,
.file-label:focus,
.parameter-header:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-link:focus-visible,
.file-label:focus-visible,
.parameter-header:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .code-block {
    background: white;
    color: black;
    border: 1px solid #ccc;
  }

  .xml-tag { color: #0066cc; }
  .xml-attribute { color: #cc6600; }
  .xml-text { color: #009900; }
  .xml-comment { color: #666666; }
}

/* ===== MENU HAMBURGUER PARA SIDEBAR EM MOBILE ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--primary-color);
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 110;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--primary-hover);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 280px;
    height: 100vh;
    transition: left 0.3s ease-in-out;
    z-index: 105;
    padding-top: 4.5rem;
  }

  .sidebar.open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
}

/* ===== AJUSTE DE ALTURA DO DROPDOWN DE OPERAÇÕES ===== */
/* .services-dropdown {
  max-height: 600px !important;
  overflow-y: auto;
  padding-right: 0.5rem;
} */

/* ===== AJUSTE PARA PARAMETER-DETAILS ===== */
/* .parameter-details {
  max-height: none !important;
  overflow: visible !important;
  padding: 1rem 1.5rem !important;
} */

/* ===== MELHORIA NO CODE-BLOCK ===== */
.code-block {
  white-space: pre;
  word-wrap: break-word;
  text-indent: 0;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.3;
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: var(--shadow-md);
  /* padding: 1.5rem; */
  border-radius: var(--border-radius);
  max-width: 70vw;
  max-height: 100vh;
}

.code-block::-webkit-scrollbar {
  height: 10px !important;
}

.code-block::-webkit-scrollbar-track {
  background: #1e293b !important;
  border-radius: 4px !important;
}

.code-block::-webkit-scrollbar-thumb {
  background: #64748b !important;
  border-radius: 4px !important;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

/* Estilos para herança */

.inheritance-overview {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.inheritance-overview h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inheritance-info {
  margin-top: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge.inheritance {
  background: #8b5cf6 !important;
  color: white;
}

.badge.inherited {
  background: #8b5cf6 !important;
  color: white;
  font-size: 10px !important;
}

.inheritance-section {
  margin-bottom: 12px;
  padding: 8px;
  border-left: 3px solid #8b5cf6;
  background: #f8fafc;
}

.inheritance-section-header {
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.own-elements-section {
  margin-top: 8px;
}

.own-elements-header {
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

.inherited-parameter {
  opacity: 0.9;
}

.inheritance-overview-item {
  background: #f8fafc;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #8b5cf6;
  margin-bottom: 8px;
}

.inheritance-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

#global-tooltip {
    position: fixed;
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    /* max-width: 300px; */
    font-size: 0.9rem;
    line-height: 1.5;
}

#global-tooltip.visible {
    opacity: 1;
}

#raw-actions{
  background: var(--bg-primary);
  padding: 0.7rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  text-align: center;
}

.button-copy {
  padding: 10px 20px;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button-copy:hover {
  background: #219653;
}
  
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: #27ae60;
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translate3d(0, -20px, 0);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.url-input-section {
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
}

.url-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.load-btn {
    width: 100%;
    padding: 0.5rem;
    background: #4299e1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.load-btn:hover {
    background: #3182ce;
}

footer {
  width: 77vw;
  margin-left: 23vw;
  margin-top: 0px;
}

footer .container {
  margin: 0 auto;
}

aside {
 height: 100vh;
}
/* ===== RESET E VARIÁVEIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Usando as mesmas variáveis do site principal */
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --card: #151926;
  --text: #e7ebf3;
  --muted: #a7b0c0;
  --primary: #6aa2ff;
  --primary-2: #3a7bff;
  --border: #233047;
  --success: #19c37d;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Cores específicas do viewer adaptadas para dark */
  --primary-color: var(--primary);
  --primary-hover: var(--primary-2);
  --primary-light: rgba(106, 162, 255, 0.1);
  --secondary-color: var(--success);
  --secondary-hover: #16a085;

  /* Cores de fundo adaptadas */
  --bg-primary: var(--bg);
  --bg-secondary: var(--bg-soft);
  --bg-tertiary: var(--card);
  --bg-dark: var(--card);
  --bg-sidebar: var(--bg);

  /* Cores de texto adaptadas */
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: #6b7280;
  --text-white: var(--text);

  /* Cores de estado adaptadas */
  --success-color: var(--success);
  --success-bg: rgba(25, 195, 125, 0.1);
  --error-color: var(--danger);
  --error-bg: rgba(239, 68, 68, 0.1);
  --warning-color: var(--warning);
  --warning-bg: rgba(245, 158, 11, 0.1);

  /* Bordas e sombras adaptadas */
  --border-color: var(--border);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);

  /* Transições */
  --transition: all 0.2s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
}

/* ===== ESTILOS GLOBAIS ===== */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg) 0%, #0e1117 100%);
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 23vw;
  background: linear-gradient(135deg, var(--bg-sidebar) 0%, var(--bg-soft) 100%);
  color: var(--text-white);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  border-right: 1px solid var(--border-color);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.soap-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.sidebar h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* ===== UPLOAD SECTION ===== */
.upload-section {
  background: var(--bg-tertiary);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-section:hover,
.upload-section.dragover {
  border-color: var(--primary-color);
  background: rgba(106, 162, 255, 0.05);
}

.upload-section p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.file-input {
  position: relative;
  display: inline-block;
}

.file-label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border: none;
}

.file-label:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

#wsdl-file {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* ===== URL INPUT SECTION ===== */
.url-input-section {
  margin-bottom: 1.5rem;
}

.url-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.url-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(106, 162, 255, 0.1);
}

.url-input::placeholder {
  color: var(--text-muted);
}

.load-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.load-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.load-btn:last-child {
  background: var(--success-color);
}

.load-btn:last-child:hover {
  background: var(--secondary-hover);
}

/* ===== NAVIGATION MENU ===== */
.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(106, 162, 255, 0.1);
  color: var(--primary-color);
}

.nav-link.active {
  background: var(--primary-color);
  color: white;
}

/* ===== SERVICES DROPDOWN ===== */
.services-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  margin-top: 0.5rem;
}

.services-dropdown.show {
  max-height: 400px;
  border: 1px solid var(--border-color);
}

.services-dropdown p {
  padding: 10px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.service-group {
  margin-bottom: 0.5rem;
}

.service-title {
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
}

.operation-link {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.operation-link:hover {
  background: rgba(106, 162, 255, 0.1);
  color: var(--primary-color);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: 23vw;
  padding: 2rem;
  min-height: 100vh;
  background: var(--bg-primary);
}

.content-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.content-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.content-body {
  position: relative;
}

/* ===== SECTIONS ===== */
.section {
  display: none;
}

.section.active {
  display: block;
}

/* ===== LOADING STATE ===== */
.loading {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
}

.loading h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.loading p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ===== CARDS E CONTAINERS ===== */
.info-card,
.service-card,
.operation-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.info-card:hover,
.service-card:hover,
.operation-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card h3,
.service-card h3,
.operation-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.info-card p,
.service-card p,
.operation-card p {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.info-card strong,
.service-card strong,
.operation-card strong {
  color: var(--text-primary);
}

/* ===== TABELAS ===== */
.info-table,
.params-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.info-table th,
.info-table td,
.params-table th,
.params-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.info-table th,
.params-table th {
  background: var(--bg-soft);
  color: var(--text-primary);
  font-weight: 600;
}

.info-table td,
.params-table td {
  color: var(--text-secondary);
}

.info-table tr:last-child td,
.params-table tr:last-child td {
  border-bottom: none;
}

/* ===== CODE BLOCKS ===== */
.xml-content,
.code-block {
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.xml-content pre,
.code-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ===== SYNTAX HIGHLIGHTING ===== */
.xml-tag { color: #60a5fa; }
.xml-attr-name { color: #fbbf24; }
.xml-attr-value { color: #86efac; }
.xml-text { color: #34d399; }
.xml-comment { color: var(--text-muted); font-style: italic; }

/* ===== BUTTONS ===== */
.button-copy,
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.button-copy,
.btn-primary {
  background: var(--primary-color);
  color: white;
}

.button-copy:hover,
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-soft);
}

/* ===== RAW ACTIONS ===== */
#raw-actions {
  margin-bottom: 1rem;
  text-align: right;
}

/* ===== TOOLTIP ===== */
#global-tooltip {
  position: absolute;
  background: var(--bg-soft);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  border: 1px solid var(--border-color);
}

#global-tooltip.show {
  opacity: 1;
}

/* ===== NOTIFICATION ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: var(--error-color);
}

/* ===== MENU TOGGLE (MOBILE) ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .content-header h1 {
    font-size: 1.5rem;
  }

  .content-header p {
    font-size: 1rem;
  }

  .info-card,
  .service-card,
  .operation-card {
    padding: 1rem;
  }

  .info-table th,
  .info-table td,
  .params-table th,
  .params-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* ===== AD CONTAINER ===== */
.ad-container {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
  color: var(--text-secondary);
  margin-left: 0vw;
  width: 100%;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== FOCUS STYLES ===== */
button:focus,
input:focus,
.nav-link:focus,
.operation-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  :root {
    --border-color: #ffffff;
    --text-secondary: #ffffff;
  }
}