
/* =========================================================
   V360 — Premium Employee Profile
   ========================================================= */

.v360-profile-page{
  max-width:1320px;
  margin:0 auto;
}

.v360-profile-grid{
  grid-template-columns:300px minmax(0,1fr)!important;
  gap:20px!important;
  margin-top:20px!important;
}

.v360-profile-main{
  gap:20px!important;
}

.v360-profile-summary,
.v360-profile-card{
  border:1px solid color-mix(in srgb,var(--border) 88%,transparent)!important;
  border-radius:16px!important;
  background:var(--card)!important;
  box-shadow:0 8px 28px rgba(15,23,42,.055)!important;
}

.v360-profile-summary{
  position:sticky!important;
  top:82px!important;
  padding:22px!important;
  overflow:hidden;
}

.v360-profile-summary::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:92px;
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--brand-green) 13%,var(--card)),
    color-mix(in srgb,var(--amber-brand) 8%,var(--card))
  );
  border-bottom:1px solid color-mix(in srgb,var(--border) 82%,transparent);
  z-index:0;
}

.v360-profile-summary>*{
  position:relative;
  z-index:1;
}

.v360-profile-summary .v358-profile-avatar-wrap{
  margin-top:22px!important;
  margin-bottom:14px!important;
}

.v360-profile-summary .v358-profile-avatar{
  width:124px!important;
  height:124px!important;
  border:5px solid var(--card)!important;
  box-shadow:
    0 0 0 2px color-mix(in srgb,var(--brand-green) 40%,var(--border)),
    0 12px 28px rgba(15,23,42,.14)!important;
}

.v360-profile-summary h2{
  margin-top:2px;
  font-size:20px!important;
  font-weight:900!important;
  letter-spacing:-.015em;
  color:var(--foreground);
}

.v360-profile-summary>p{
  margin-top:5px!important;
  font-size:11.5px!important;
  color:var(--muted-foreground)!important;
}

.v360-profile-summary .v358-profile-role{
  margin-top:11px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--brand-green) 8%,var(--card))!important;
  border-color:color-mix(in srgb,var(--brand-green) 30%,var(--border))!important;
  font-size:10px!important;
  font-weight:850!important;
}

.v360-profile-meta{
  display:grid;
  gap:8px;
  margin-top:18px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:color-mix(in srgb,var(--muted) 22%,var(--card));
  text-align:left;
}

.v360-profile-meta>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.v360-profile-meta span{
  font-size:10px;
  color:var(--muted-foreground);
}

.v360-profile-meta strong{
  font-size:10.5px;
  font-weight:800;
  color:var(--foreground);
}

.v360-profile-meta strong.online{
  position:relative;
  padding-left:12px;
  color:var(--success);
}

.v360-profile-meta strong.online::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:7px;
  height:7px;
  border-radius:50%;
  transform:translateY(-50%);
  background:var(--success);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--success) 12%,transparent);
}

.v360-profile-summary .v358-avatar-upload{
  min-height:42px!important;
  margin-top:16px!important;
  border-radius:9px!important;
  border-color:color-mix(in srgb,var(--brand-green) 35%,var(--border))!important;
  background:color-mix(in srgb,var(--brand-green) 5%,var(--card))!important;
  color:var(--brand-green)!important;
  font-weight:800!important;
}

.v360-profile-summary .v358-avatar-upload:hover{
  background:color-mix(in srgb,var(--brand-green) 10%,var(--card))!important;
}

.v360-profile-summary small{
  margin-top:8px!important;
  font-size:9.5px!important;
}

/* Main cards */
.v360-profile-card{
  padding:20px!important;
}

.v360-profile-section-head{
  align-items:center!important;
  padding-bottom:14px!important;
  margin-bottom:18px!important;
}

.v360-profile-section-head h3{
  font-size:16px!important;
  font-weight:900!important;
  letter-spacing:-.01em;
}

.v360-profile-section-head p{
  max-width:680px;
  margin-top:5px!important;
  font-size:11.5px!important;
  line-height:1.55;
}

.v360-profile-section-head>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 9px;
  border:1px solid color-mix(in srgb,var(--brand-green) 28%,var(--border));
  border-radius:999px;
  background:color-mix(in srgb,var(--brand-green) 6%,var(--card));
  font-size:9px!important;
  font-weight:900!important;
  letter-spacing:.11em!important;
}

/* Form */
.v360-profile-form-grid{
  gap:14px!important;
}

.v360-profile-form-grid label{
  gap:7px!important;
}

.v360-profile-form-grid label>span,
.v360-profile-password-grid label>span{
  font-size:10.5px!important;
  font-weight:800!important;
  color:var(--foreground)!important;
}

.v360-profile-form-grid input,
.v360-profile-password-grid input{
  height:44px!important;
  border-radius:9px!important;
  border:1px solid color-mix(in srgb,var(--border) 95%,transparent)!important;
  background:color-mix(in srgb,var(--background) 96%,var(--muted))!important;
  padding:0 12px!important;
  font-size:12.5px!important;
  font-weight:550;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.v360-profile-form-grid input:hover,
.v360-profile-password-grid input:hover{
  border-color:color-mix(in srgb,var(--brand-green) 28%,var(--border))!important;
}

.v360-profile-form-grid input:focus,
.v360-profile-password-grid input:focus{
  border-color:var(--brand-green)!important;
  background:var(--background)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-green) 11%,transparent)!important;
}

.v360-profile-form-grid input:disabled{
  background:color-mix(in srgb,var(--muted) 62%,var(--card))!important;
  color:var(--muted-foreground)!important;
  cursor:not-allowed;
}

/* Buttons */
.v360-profile-actions{
  margin-top:18px!important;
  padding-top:15px;
  border-top:1px solid color-mix(in srgb,var(--border) 80%,transparent);
}

.v360-profile-actions button{
  min-height:42px!important;
  min-width:170px;
  border-radius:9px!important;
  padding:0 16px!important;
  font-size:11.5px!important;
  font-weight:850!important;
  box-shadow:0 3px 10px color-mix(in srgb,var(--brand-green) 18%,transparent);
}

.v360-profile-actions button:hover:not(:disabled){
  transform:translateY(-1px);
}

.v360-profile-actions button.secondary{
  background:#b47b24!important;
  border-color:#b47b24!important;
  box-shadow:0 3px 10px rgba(180,123,36,.18)!important;
}

/* Password block slightly distinct */
.v360-profile-password-grid{
  padding:14px;
  border:1px solid color-mix(in srgb,var(--amber-brand) 20%,var(--border));
  border-radius:11px;
  background:color-mix(in srgb,var(--amber-brand) 3.5%,var(--card));
}

/* Responsive */
@media(max-width:1000px){
  .v360-profile-grid{
    grid-template-columns:1fr!important;
  }
  .v360-profile-summary{
    position:static!important;
    display:grid!important;
    grid-template-columns:108px minmax(0,1fr)!important;
    column-gap:18px!important;
    text-align:left!important;
  }
  .v360-profile-summary::before{
    height:100%!important;
    width:112px!important;
    right:auto!important;
    border-right:1px solid var(--border);
    border-bottom:0;
  }
  .v360-profile-summary .v358-profile-avatar-wrap{
    grid-row:1/7;
    margin:0!important;
    align-self:start;
  }
  .v360-profile-summary .v358-profile-avatar{
    width:92px!important;
    height:92px!important;
  }
  .v360-profile-meta{
    margin-top:12px;
  }
  .v360-profile-summary .v358-avatar-upload{
    margin-top:10px!important;
  }
  .v360-profile-summary small{
    grid-column:2;
  }
}

@media(max-width:760px){
  .v360-profile-card{
    padding:16px!important;
    border-radius:12px!important;
  }
  .v360-profile-form-grid,
  .v360-profile-password-grid{
    grid-template-columns:1fr!important;
  }
  .v360-profile-section-head{
    align-items:flex-start!important;
  }
}

@media(max-width:560px){
  .v360-profile-grid{
    gap:14px!important;
    margin-top:14px!important;
  }
  .v360-profile-summary{
    grid-template-columns:82px 1fr!important;
    column-gap:12px!important;
    padding:15px!important;
  }
  .v360-profile-summary::before{
    width:86px!important;
  }
  .v360-profile-summary .v358-profile-avatar{
    width:70px!important;
    height:70px!important;
  }
  .v360-profile-summary h2{
    font-size:17px!important;
  }
  .v360-profile-meta{
    grid-column:1/-1;
  }
  .v360-profile-summary .v358-avatar-upload,
  .v360-profile-summary small{
    grid-column:1/-1;
  }
  .v360-profile-actions button{
    width:100%;
    min-width:0;
  }
}

/* Dark mode */
.dark .v360-profile-summary::before{
  background:linear-gradient(135deg,
    color-mix(in srgb,var(--brand-green) 18%,var(--card)),
    color-mix(in srgb,var(--amber-brand) 12%,var(--card))
  );
}
