/* DO CLOUD Brand Colors - Oficial */
:root {
  --primary-color: #0A6CFF;
  --primary-dark: #0856CC;
  --primary-gradient: linear-gradient(135deg, #0A6CFF, #1FD1C3);
  --turquoise: #1FD1C3;
  --dark-blue: #0B1E3B;
  --light-gray: #F2F4F7;
  --link-color: #0856CC;
  --link-hover: #0A6CFF;
}

/* ============================================
   OCULTAR SIDEBAR IZQUIERDO (navegacion)
   ============================================ */
.sidebar-nav,
nav.sidebar-nav {
  display: none !important;
}

/* ============================================
   OCULTAR TOC DERECHO (On This Page)
   ============================================ */
.toc-sidebar,
.toc-container,
.toc-list,
div.toc-sidebar {
  display: none !important;
  width: 0 !important;
}

/* ============================================
   OCULTAR FOOTER DE DOCMD
   ============================================ */
.page-footer,
.branding-footer,
footer.page-footer {
  display: none !important;
}

/* ============================================
   MOSTRAR HEADER CON LOGO
   ============================================ */
.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 70px !important;
  background: white !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 30px !important;
  z-index: 1000 !important;
}

.sidebar-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 100% !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.sidebar-header .logo-link {
  display: flex !important;
  align-items: center !important;
}

/* Ocultar título DO CLOUD del header */
.sidebar-header h1,
.sidebar h1 {
  display: none !important;
}

.sidebar-header .logo-link img {
  max-height: 45px !important;
  width: auto !important;
}

/* Ocultar elementos innecesarios del sidebar */
.sidebar-menu-button,
.sidebar .mobile-view {
  display: none !important;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.main-content,
main.content,
.content-wrapper,
.page-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 90px !important;
  max-width: 100% !important;
  width: 100% !important;
}

.content,
.main-content article {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   ENLACES CON CONTRASTE MEJORADO (WCAG AA)
   ============================================ */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--dark-blue);
  text-decoration-thickness: 2px;
}

/* Enlaces en navegacion sin subrayado */
nav a,
.sidebar a,
.logo-link {
  text-decoration: none !important;
}

h1, h2, h3, h4 {
  color: var(--dark-blue);
  font-weight: 600;
}

/* ============================================
   BOTONES CON GRADIENTE
   ============================================ */
a[style*="background:#0066cc"],
a[style*="background:#28a745"],
a[style*="background:#dc3545"],
.btn-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 108, 255, 0.3);
}

a[style*="background:#0066cc"]:hover,
a[style*="background:#28a745"]:hover,
a[style*="background:#dc3545"]:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 108, 255, 0.4);
  filter: brightness(1.1);
}

a[style*="background:#6c757d"] {
  background: var(--dark-blue) !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

a[style*="background:#6c757d"]:hover {
  background: #1a3a5c !important;
  transform: translateY(-2px);
}

/* ============================================
   TABLAS ESTILIZADAS
   ============================================ */
table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 30, 59, 0.1);
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: var(--primary-gradient) !important;
  color: white !important;
  font-weight: 600;
  padding: 15px;
}

td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--light-gray);
}

tr:hover td {
  background: var(--light-gray);
}

/* ============================================
   FOOTER PERSONALIZADO
   ============================================ */
div[align="center"]:last-of-type {
  border-top: 3px solid;
  border-image: var(--primary-gradient) 1;
  padding-top: 25px;
  margin-top: 50px;
}

div[align="center"]:last-of-type a {
  color: var(--dark-blue);
  font-weight: 500;
}

/* ============================================
   MODO OSCURO
   ============================================ */
[data-theme="dark"] .sidebar {
  background: #1a1a2e !important;
}

[data-theme="dark"] {
  --dark-blue: #ffffff;
  --light-gray: #1a1a2e;
  --link-color: #5BA3FF;
  --link-hover: #8BC4FF;
}

[data-theme="dark"] th {
  background: var(--primary-gradient) !important;
}

/* ============================================
   BOTÓN LOGIN EN HEADER
   ============================================ */
.header-login-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: var(--primary-gradient) !important;
  color: white !important;
  padding: 12px 28px !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 108, 255, 0.35);
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.header-login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(10, 108, 255, 0.5);
  filter: brightness(1.1);
  color: white !important;
}

.header-login-btn:active {
  transform: translateY(-1px);
}

.header-login-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================
   BOTÓN FEEDBACK ZAMMAD (flotante)
   ============================================ */
#zammad-feedback-form {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(10, 108, 255, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#zammad-feedback-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(10, 108, 255, 0.5);
}

#zammad-feedback-form::before {
  content: '💬';
  font-size: 16px;
}

/* Estilos para modal de Zammad */
.zammad-form-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.zammad-form-modal .zammad-form-modal-body {
  border-radius: 12px !important;
}

.zammad-form-modal input,
.zammad-form-modal textarea,
.zammad-form-modal select {
  border-radius: 6px !important;
  border: 1px solid var(--light-gray) !important;
  padding: 10px 12px !important;
}

.zammad-form-modal button[type="submit"] {
  background: var(--primary-gradient) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
}
