/* ========================================================================== 
   iConnect MED - Estilos globales de la aplicacion
   Oracle APEX 26.1 / Universal Theme
   ========================================================================== */

:root {
  --ic-navy-950: #052744;
  --ic-navy-900: #07345c;
  --ic-navy-800: #0a466e;
  --ic-blue-700: #0b6288;
  --ic-cyan-600: #0c87a8;
  --ic-cyan-500: #10a6c4;
  --ic-teal-500: #20a78f;
  --ic-green-500: #78b75b;
  --ic-ink-900: #122334;
  --ic-ink-700: #40566a;
  --ic-ink-500: #6f8292;
  --ic-line: #dbe7ee;
  --ic-surface: #ffffff;
  --ic-surface-soft: #f5f9fb;
  --ic-shadow-sm: 0 8px 24px rgba(5, 39, 68, 0.08);
  --ic-shadow-md: 0 18px 50px rgba(5, 39, 68, 0.14);
  --ic-radius-sm: 12px;
  --ic-radius-md: 20px;
  --ic-radius-lg: 28px;
}

/* Estructura general ------------------------------------------------------- */

body:not(.t-PageBody--login) .t-Body-main {
  background:
    linear-gradient(rgba(11, 98, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 98, 136, 0.035) 1px, transparent 1px),
    #f7fafc;
  background-size: 34px 34px;
}

body:not(.t-PageBody--login) .t-Body-contentInner {
  margin-inline: auto;
  max-width: 1520px;
  padding: clamp(18px, 2.5vw, 38px);
}

/* Encabezado y navegacion -------------------------------------------------- */

.t-Header {
  background: linear-gradient(112deg, var(--ic-navy-950), var(--ic-navy-800) 58%, #0c7182);
  box-shadow: 0 8px 28px rgba(5, 39, 68, 0.2);
}

.t-Header-branding,
.t-Header-nav {
  background: transparent;
}

.t-Header-logo-link,
.t-Header .t-Button,
.t-Header .a-MenuBar-label,
.t-Header .t-NavigationBar-item,
.t-Header .t-NavigationBar-item a {
  color: #ffffff;
}

/* Presenta nombres de usuario con formato de nombre propio. */
.t-Header .t-NavigationBar .t-Button-label {
  text-transform: capitalize;
}

.t-TreeNav {
  background: var(--ic-navy-950);
}

.t-TreeNav .a-TreeView-content {
  border-radius: 10px;
  margin: 2px 8px;
}

.t-TreeNav .a-TreeView-row.is-current,
.t-TreeNav .a-TreeView-content.is-current,
.t-TreeNav .a-TreeView-content:hover {
  background: linear-gradient(90deg, rgba(16, 166, 196, 0.28), rgba(32, 167, 143, 0.16));
}

/* Titulo/breadcrumb de pagina --------------------------------------------- */

.t-BreadcrumbRegion {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--ic-line);
  box-shadow: 0 4px 20px rgba(5, 39, 68, 0.04);
}

.t-BreadcrumbRegion-title,
.t-BreadcrumbRegion .t-Breadcrumb-label {
  color: var(--ic-ink-900);
}

/* Regiones y formularios --------------------------------------------------- */

.t-Region {
  border: 1px solid rgba(219, 231, 238, 0.92);
  border-radius: var(--ic-radius-md);
  box-shadow: var(--ic-shadow-sm);
  overflow: hidden;
}

.t-Region-header {
  background: linear-gradient(180deg, #ffffff, #f8fbfc);
  border-bottom-color: var(--ic-line);
}

.t-Form-inputContainer input,
.t-Form-inputContainer select,
.t-Form-inputContainer textarea,
.apex-item-text,
.apex-item-select,
.apex-item-textarea {
  border-color: #cbdce6;
  border-radius: var(--ic-radius-sm);
}

.t-Button--hot {
  background: linear-gradient(105deg, var(--ic-navy-800), var(--ic-cyan-600));
  border: 0;
  border-radius: var(--ic-radius-sm);
  box-shadow: 0 10px 24px rgba(11, 98, 136, 0.2);
}

.t-Button--hot:hover,
.t-Button--hot:focus {
  background: linear-gradient(105deg, var(--ic-navy-900), var(--ic-cyan-500));
  box-shadow: 0 12px 30px rgba(11, 98, 136, 0.28);
  transform: translateY(-1px);
}

/* Dashboard: bienvenida --------------------------------------------------- */

.ic-dashboard-hero {
  isolation: isolate;
  min-height: 280px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 310px);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--ic-radius-lg);
  background:
    radial-gradient(circle at 88% 10%, rgba(32, 167, 143, 0.34), transparent 31%),
    radial-gradient(circle at 70% 105%, rgba(16, 166, 196, 0.28), transparent 36%),
    linear-gradient(118deg, var(--ic-navy-950) 0%, var(--ic-navy-800) 55%, #0b7383 100%);
  box-shadow: var(--ic-shadow-md);
}

.ic-dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
}

.ic-dashboard-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  right: -190px;
  top: -245px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 72px rgba(255, 255, 255, 0.035),
    0 0 0 146px rgba(255, 255, 255, 0.025);
}

.ic-dashboard-hero__content {
  max-width: 820px;
}

.ic-dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #bdebf1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ic-dashboard-eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ic-cyan-500), var(--ic-green-500));
}

.ic-dashboard-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.ic-dashboard-hero h1 span {
  color: #83e0e6;
}

.ic-dashboard-hero__description {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.ic-dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ic-dashboard-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 14px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.ic-dashboard-meta__item .fa {
  color: #83e0e6;
}

.ic-dashboard-hero__brand {
  justify-self: center;
}

.ic-dashboard-logo {
  width: clamp(160px, 19vw, 230px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  border-radius: 34px;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--ic-cyan-500), var(--ic-teal-500), var(--ic-green-500)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 24px 60px rgba(2, 27, 48, 0.35);
}

.ic-dashboard-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}

/* Accesos rapidos: clases para Cards de APEX ------------------------------ */

.ic-quick-access {
  margin-top: 28px;
}

.ic-quick-access .a-CardView {
  gap: 18px;
}

.ic-quick-access .a-CardView-item {
  border: 1px solid var(--ic-line);
  border-radius: var(--ic-radius-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--ic-shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ic-quick-access .a-CardView-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 166, 196, 0.48);
  box-shadow: 0 18px 42px rgba(5, 39, 68, 0.14);
}

.ic-quick-access .a-CardView-icon {
  color: #ffffff;
  background: linear-gradient(135deg, var(--ic-blue-700), var(--ic-cyan-600));
  box-shadow: 0 10px 22px rgba(11, 98, 136, 0.22);
}

.ic-quick-access .a-CardView-title {
  color: var(--ic-ink-900);
  font-weight: 750;
}

.ic-quick-access .a-CardView-subTitle,
.ic-quick-access .a-CardView-body {
  color: var(--ic-ink-500);
}

/* Utilidades -------------------------------------------------------------- */

.ic-section-heading {
  margin: 32px 0 16px;
}

.ic-section-heading h2 {
  margin: 0;
  color: var(--ic-ink-900);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: -0.02em;
}

.ic-section-heading p {
  margin: 6px 0 0;
  color: var(--ic-ink-500);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 760px) {
  body:not(.t-PageBody--login) .t-Body-contentInner {
    padding: 14px;
  }

  .ic-dashboard-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 30px 24px;
    border-radius: 22px;
  }

  .ic-dashboard-hero__brand {
    grid-row: 1;
  }

  .ic-dashboard-logo {
    width: 132px;
    border-radius: 25px;
  }

  .ic-dashboard-hero__content {
    text-align: center;
  }

  .ic-dashboard-eyebrow,
  .ic-dashboard-meta {
    justify-content: center;
  }

  .ic-dashboard-hero__description {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
