/* DUBAI STUDIO UNIFIED 3D DESIGN — V1 */

:root{
 --dubai-blue:#0866ff;
 --dubai-blue-soft:#dceaff;
 --dubai-dark:#10264b;
 --dubai-muted:#6c82a4;
 --dubai-surface:#eaf1fa;
 --dubai-raised:
  9px 9px 20px #92a9c16b,
  -8px -8px 19px #ffffffed;
 --dubai-raised-hover:
  12px 13px 24px #8ca7c57d,
  -9px -9px 22px #fff;
 --dubai-inset:
  inset 6px 6px 12px #adc2daa1,
  inset -6px -6px 12px #fff;
}

/* Raised cards */
:where(
 .card,.api-card,.tool,.feature,
 .ds-model,.service-card,.model-card,
 .dashboard-card,.app-card,.template-card,
 .stat-card,.feature-card,.project-card
){
 border-radius:24px;
 border:1px solid #ffffffdf;
 background:linear-gradient(145deg,#fbfdff,#e2ecfa);
 box-shadow:var(--dubai-raised);
 transition:
  transform .22s ease,
  box-shadow .22s ease,
  border-color .22s ease,
  background .22s ease;
}

:where(
 .card,.api-card,.tool,.feature,
 .ds-model,.service-card,.model-card,
 .dashboard-card,.app-card,.template-card,
 .stat-card,.feature-card,.project-card
):hover{
 transform:translateY(-3px);
 border-color:#bcd5fa;
 background:linear-gradient(145deg,#ffffff,#dceafe);
 box-shadow:var(--dubai-raised-hover);
}

/* Buttons */
:where(
 button,.btn,.button,
 .soft-btn,.primary,
 input[type="submit"],
 input[type="button"]
):not(:disabled):not([aria-disabled="true"]){
 border-radius:15px;
 transition:
  transform .18s ease,
  box-shadow .18s ease,
  filter .18s ease,
  background-color .18s ease,
  color .18s ease;
}

:where(
 button,.btn,.button,.soft-btn,
 input[type="submit"],input[type="button"]
):not(:disabled):not([aria-disabled="true"]):hover{
 transform:translateY(-2px);
 filter:brightness(1.035);
}

:where(
 button,.btn,.button,.soft-btn,.primary,
 input[type="submit"],input[type="button"]
):not(:disabled):not([aria-disabled="true"]):active{
 transform:translateY(1px);
 box-shadow:var(--dubai-inset);
}

/* Primary action buttons */
:where(
 .primary,.btn-primary,
 .button-primary,
 button.primary,
 button[type="submit"]
){
 background:linear-gradient(
  155deg,#438fff,#0866ff,#064cc9
 );
 color:#fff;
 border-color:#6b9fff;
 box-shadow:
  0 8px 18px #0866ff38,
  inset 0 2px 4px #ffffff70;
}

/* Recessed inputs */
:where(
 .api-card input,
 .field input,
 .api-card textarea,
 .field textarea,
 .api-card select,
 .field select
){
 background:#edf4fc;
 border:1px solid #c4d5eb;
 border-radius:14px;
 box-shadow:var(--dubai-inset);
 color:var(--dubai-dark);
}

:where(input,textarea,select):focus-visible{
 outline:2px solid #75a8ff;
 outline-offset:2px;
}

/* Sidebar and navigation */
:where(
 .sidebar a,.side-nav a,
 .nav-item,.menu-item,
 .sidebar button,.side-nav button
){
 transition:
  background-color .22s ease,
  color .22s ease,
  box-shadow .22s ease,
  transform .22s ease;
}

:where(
 .sidebar a,.side-nav a,
 .nav-item,.menu-item
):hover{
 background:#e0edff;
 color:#0759e5;
 border-radius:13px;
}

:where(
 .sidebar .active,.side-nav .active,
 .nav-item.active,
 [aria-current="page"]
){
 background:linear-gradient(145deg,#edf5ff,#d7e7ff);
 color:#0759e5;
 border-radius:13px;
 box-shadow:var(--dubai-inset);
}

/* Model catalog */
#ds-settings-models .ds-model{
 border-radius:20px;
 box-shadow:var(--dubai-raised);
}

#ds-settings-models .ds-model:hover{
 background:#e3efff;
}

/* Disabled controls must look disabled */
:where(button,input[type="submit"]):disabled{
 opacity:.55;
 cursor:not-allowed;
}

/* Mobile and accessibility */
@media(max-width:600px){
 :where(.card,.api-card,.tool,.feature,.ds-model){
  border-radius:19px;
 }
}

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