/* Project Service Orders - Youzify Group Header customizations */

/* Two-column grid: left = default Youzify header; right = Apps + PM + Digital Navigator */
.psoo-group-header-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.psoo-col--right {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  max-width: 300px;
  width: 100%;
  padding: 32px 26px;
  background-image: url('psoo-tech-column-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100%;
}
.psoo-col--right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 32, 0.32) 0%, rgba(9, 11, 28, 0.28) 100%);
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.psoo-col--right > * {
  position: relative;
  z-index: 1;
}
.psoo-right-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}



/* Future-tech glass cards */
.psoo-pm-card,
.psoo-apps-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 22px;
  border-radius: 22px;
  color: #f8fbff;
  border: 1px solid transparent;
  background: linear-gradient(150deg, rgba(10, 13, 32, 0.38), rgba(9, 11, 25, 0.58));
  background-clip: padding-box;
  box-shadow: 0 28px 60px rgba(110, 193, 228, 0.18);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}
.psoo-pm-card::before,
.psoo-apps-card::before {
  content: "";
  position: absolute;
  inset: -50% -10% 35% -45%;
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(170% 180% at 0% 0%, rgba(110, 193, 228, 0.6) 0%, rgba(182, 8, 201, 0.38) 48%, rgba(9, 11, 28, 0) 85%);
}
.psoo-pm-card::after,
.psoo-apps-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(10, 13, 30, 0.55), rgba(9, 11, 24, 0.62));
  border: 1px solid rgba(110, 193, 228, 0.55);
  background-clip: padding-box;
  mix-blend-mode: screen;
  opacity: 0.72;
  pointer-events: none;
  z-index: 0;
}
.psoo-pm-card > *,
.psoo-apps-card > * {
  position: relative;
  z-index: 2;
}

/* Accent washes per card */
.psoo-pm-card::before {
  background: radial-gradient(150% 170% at 0% 0%, rgba(182, 8, 201, 0.65) 0%, rgba(204, 0, 0, 0.42) 40%, rgba(9, 11, 28, 0) 80%);
}
.psoo-apps-card::before {
  background: radial-gradient(170% 180% at 0% 0%, rgba(110, 193, 228, 0.6) 0%, rgba(182, 8, 201, 0.38) 48%, rgba(9, 11, 28, 0) 85%);
}
.psoo-digital-card::before {
  background: radial-gradient(160% 170% at 0% 0%, rgba(110, 193, 228, 0.58) 0%, rgba(151, 228, 110, 0.4) 45%, rgba(9, 11, 28, 0) 85%);
}
.psoo-account-card::before {
  background: radial-gradient(160% 170% at 0% 0%, rgba(110, 193, 228, 0.6) 0%, rgba(182, 8, 201, 0.48) 45%, rgba(9, 11, 28, 0) 85%);
}

.psoo-pm-card:hover,
.psoo-apps-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 34px 70px rgba(110, 193, 228, 0.28), 0 0 38px rgba(182, 8, 201, 0.38);
}
.psoo-pm-card:hover::after,
.psoo-apps-card:hover::after {
  border-color: rgba(182, 8, 201, 0.75);
  opacity: 1;
}


/* Heading icons */
.psoo-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 12px;
  background: rgba(182, 8, 201, 0.32);
  box-shadow: 0 8px 18px rgba(182, 8, 201, 0.25);
}
.psoo-head-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.psoo-apps-card .psoo-head-icon {
  background: rgba(110, 193, 228, 0.28);
  box-shadow: 0 8px 18px rgba(110, 193, 228, 0.22);
}
.psoo-digital-card .psoo-head-icon {
  background: rgba(151, 228, 110, 0.28);
  box-shadow: 0 8px 18px rgba(151, 228, 110, 0.22);
}
.psoo-account-card .psoo-head-icon {
  background: rgba(110, 193, 228, 0.32);
  box-shadow: 0 8px 18px rgba(110, 193, 228, 0.26);
}

/* Headings */
.psoo-pm-head,
.psoo-apps-head {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #6ec1e4;
}
.psoo-apps-head { color: #b608c9; }
.psoo-digital-card .psoo-pm-head { color: #97e46e; }
.psoo-account-card .psoo-pm-head { color: #6ec1e4; }


/* Project & Navigator body */
.psoo-pm-body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.psoo-pm-avatar-wrap { flex: 0 0 auto; }
.psoo-pm-avatar {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(182, 8, 201, 0.4);
  box-shadow: 0 16px 38px rgba(182, 8, 201, 0.35);
}
.psoo-digital-card .psoo-pm-avatar {
  border-color: rgba(151, 228, 110, 0.45);
  box-shadow: 0 16px 38px rgba(151, 228, 110, 0.32);
}
.psoo-account-card .psoo-pm-avatar {
  border-color: rgba(110, 193, 228, 0.45);
  box-shadow: 0 16px 38px rgba(110, 193, 228, 0.32);
}

.psoo-pm-groups-wrapper {
  margin-top: 26px;
  display: block;
}
.psoo-pm-groups-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.psoo-pm-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 22px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f8fbff;
  background: rgba(110, 193, 228, 0.16);
  border: 1px solid rgba(110, 193, 228, 0.38);
  transition: all 0.3s ease;
}
.psoo-pm-filter:hover,
.psoo-pm-filter:focus {
  color: #ffffff;
  border-color: rgba(182, 8, 201, 0.6);
  box-shadow: 0 12px 24px rgba(110, 193, 228, 0.25);
}
.psoo-pm-filter.is-active {
  background: linear-gradient(135deg, rgba(182, 8, 201, 0.7), rgba(110, 193, 228, 0.75));
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(182, 8, 201, 0.3);
}
.psoo-pm-groups-empty {
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(9, 11, 32, 0.55);
  border: 1px dashed rgba(110, 193, 228, 0.38);
  color: rgba(248, 251, 255, 0.85);
  font-style: italic;
}
.psoo-pm-groups-list {
  display: grid;
  gap: 20px;
}
@media (min-width: 960px) {
  .psoo-pm-groups-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.psoo-pm-groups-status {
  margin-bottom: 16px;
  min-height: 1em;
}
.psoo-pm-groups-spinner {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(110, 193, 228, 0.25);
  border-top-color: rgba(182, 8, 201, 0.75);
  animation: psoo-spin 0.9s linear infinite;
  margin-bottom: 16px;
}
.psoo-pm-groups-wrapper.is-loading .psoo-pm-groups-spinner {
  display: inline-block;
}
.psoo-pm-groups-wrapper.is-loading .psoo-pm-groups-list {
  opacity: 0.45;
  pointer-events: none;
}
.psoo-pm-groups-wrapper.is-loading .psoo-pm-filter {
  pointer-events: none;
}
.psoo-pm-groups-empty.psoo-error {
  border-style: solid;
  border-color: rgba(226, 75, 107, 0.65);
  color: #ffe0e0;
  font-style: normal;
}
.psoo-pm-groups-status .psoo-pm-groups-summary {
  margin: 0;
  color: rgba(248, 251, 255, 0.82);
  font-style: normal;
}
.psoo-pm-card .psoo-assign-pm-btn {
  margin-top: 12px;
  align-self: flex-start;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.psoo-assign-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.psoo-assign-modal.is-open {
  display: flex;
}
.psoo-assign-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 28, 0.78);
  backdrop-filter: blur(6px);
}
.psoo-assign-dialog {
  position: relative;
  max-width: 520px;
  width: calc(100% - 40px);
  background: linear-gradient(160deg, rgba(10, 13, 32, 0.95), rgba(9, 11, 24, 0.9));
  border-radius: 20px;
  padding: 28px 32px;
  border: 1px solid rgba(110, 193, 228, 0.45);
  box-shadow: 0 30px 80px rgba(9, 11, 32, 0.65);
  color: #f8fbff;
}
.psoo-assign-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #f8fbff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.psoo-assign-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.psoo-assign-intro {
  margin: 0 0 18px;
  color: rgba(248, 251, 255, 0.75);
}
.psoo-assign-search-label {
  display: block;
  margin-bottom: 16px;
}
.psoo-assign-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(110, 193, 228, 0.35);
  background: rgba(15, 20, 38, 0.9);
  color: #f8fbff;
}
.psoo-assign-spinner {
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(110, 193, 228, 0.25);
  border-top-color: rgba(182, 8, 201, 0.75);
  animation: psoo-spin 0.9s linear infinite;
  margin: 0 auto 14px;
}
.psoo-assign-modal.is-searching .psoo-assign-spinner {
  display: block;
}
.psoo-assign-feedback {
  min-height: 1em;
  margin-bottom: 12px;
  color: rgba(248, 251, 255, 0.8);
}
.psoo-assign-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.psoo-assign-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 20, 38, 0.8);
  border: 1px solid rgba(110, 193, 228, 0.25);
}
.psoo-assign-result-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.psoo-assign-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}
.psoo-assign-result-name {
  font-weight: 700;
  color: #f8fbff;
}
.psoo-assign-result button {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@keyframes psoo-spin {
  to {
    transform: rotate(360deg);
  }
}
.psoo-pm-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.psoo-pm-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  text-shadow: 0 6px 16px rgba(182, 8, 201, 0.28);
}
.psoo-pm-name:hover {
  color: #6ec1e4;
}
.psoo-pm-empty {
  color: rgba(248, 251, 255, 0.72);
  font-style: italic;
}

/* Primary actions */
.psoo-message-btn {
  --btn-bg: linear-gradient(135deg, #cc0000 0%, #b608c9 45%, #6ec1e4 100%);
  --btn-bg-hover: linear-gradient(135deg, #b608c9 0%, #cc0000 55%, #97e46e 100%);
  background: var(--btn-bg) !important;
  border-color: transparent !important;
  color: #090b1b !important;
  border-radius: 12px !important;
  padding: 10px 18px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(182, 8, 201, 0.28) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.psoo-message-btn:hover {
  background: var(--btn-bg-hover) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 44px rgba(204, 0, 0, 0.32) !important;
}
.psoo-digital-message-btn {
  --btn-bg: linear-gradient(135deg, #6ec1e4 0%, #97e46e 100%);
  --btn-bg-hover: linear-gradient(135deg, #97e46e 0%, #6ec1e4 100%);
  box-shadow: 0 18px 40px rgba(151, 228, 110, 0.28) !important;
}

/* Apps list */
.psoo-apps { margin: 0; }
.psoo-apps-card { gap: 14px; }
.psoo-apps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.psoo-app-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(10, 13, 32, 0.78);
  border: 1px solid rgba(182, 8, 201, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.psoo-app-inner:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 193, 228, 0.9);
  box-shadow: 0 20px 40px rgba(110, 193, 228, 0.25);
}
.psoo-app-main {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f8fbff;
  font-weight: 600;
}
.psoo-app-name-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-shadow: 0 6px 16px rgba(110, 193, 228, 0.28);
}
.psoo-app-main:hover .psoo-app-name-link {
  color: #6ec1e4;
}
.psoo-app-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(182, 8, 201, 0.35), rgba(110, 193, 228, 0.35));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(182, 8, 201, 0.35), 0 12px 24px rgba(110, 193, 228, 0.24);
}
.psoo-app-logo img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}
.psoo-app-name { font-weight: 700; }

.psoo-app-view-btn {
  --btn-bg: linear-gradient(135deg, #6ec1e4 0%, #b608c9 80%);
  --btn-bg-hover: linear-gradient(135deg, #b608c9 0%, #6ec1e4 100%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--btn-bg) !important;
  border-color: transparent !important;
  color: #090b1b !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 36px rgba(110, 193, 228, 0.28) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.psoo-app-view-btn:hover {
  background: var(--btn-bg-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(182, 8, 201, 0.32) !important;
}

/* Responsive: stack columns on narrow screens */
@media (max-width: 980px) {
  .psoo-group-header-grid { grid-template-columns: 1fr; }
  .psoo-col--left,
  .psoo-col--right { grid-column: auto; }
  .psoo-col--left { order: 1; }
  .psoo-col--right { order: 2; }
}


/* Header tools anchored to the left column */
.psoo-col--left { position: relative; grid-column: 2; }
.psoo-group-nav {
  margin-top: 6px;
  width: 100%;
}
body.psoo-has-project-header #item-nav,
body.psoo-has-project-header .youzify-group-navigation,
body.psoo-has-project-header #youzify-profile-navmenu,
body.psoo-has-project-header .youzify-group-navmenu {
  display: none !important;
}

body.psoo-has-project-header #item-body,
body.psoo-has-project-header .youzify-profile-content,
body.psoo-has-project-header .youzify-profile-main-content {
  margin-top: 0;
  padding-top: 0;
}

.psoo-group-nav #object-nav {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(140deg, rgba(9, 12, 32, 0.8) 0%, rgba(11, 20, 42, 0.55) 100%);
  border: 1px solid rgba(110, 193, 228, 0.28);
  border-radius: 22px 0 0 22px;
  box-shadow: 0 26px 48px rgba(9, 14, 34, 0.45);
  backdrop-filter: blur(14px);
}
.psoo-group-nav #object-nav > li {
  margin: 0;
}
.psoo-col--left .youzify-group-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.psoo-col--left .youzify-group-tools .youzify-tool-btn { margin: 0; }

/* Group nav icon layout */
#object-nav .psoo-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(110, 193, 228, 0.22);
  background: linear-gradient(135deg, rgba(14, 20, 42, 0.65), rgba(10, 13, 30, 0.45));
  color: #f5f7ff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
#object-nav .psoo-nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 8, 201, 0.5);
  box-shadow: 0 16px 32px rgba(110, 193, 228, 0.28);
  color: #ffffff;
}
#object-nav .current > .psoo-nav-link {
  background: linear-gradient(135deg, #6ec1e4 0%, #b608c9 70%);
  color: #090b1b;
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(110, 193, 228, 0.35);
}
#object-nav .psoo-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(110, 193, 228, 0.28);
  box-shadow: 0 10px 24px rgba(110, 193, 228, 0.22);
}
#object-nav .current > .psoo-nav-link .psoo-nav-icon {
  background: rgba(151, 228, 110, 0.4);
  box-shadow: 0 12px 28px rgba(151, 228, 110, 0.3);
}
#object-nav .psoo-nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
#object-nav .psoo-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#object-nav .psoo-nav-label .count {
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
}
