/* PRIMARY */
.bg-primary-linear {
  background: linear-gradient(
    135deg,
    #2F6BFF 0%,
    #1E4FD6 55%,
    #153A9B 100%
  ) !important;
}

.bg-primary {
  background: #153A9B !important;
}

/* SUCCESS */
.bg-success-linear {
  background: linear-gradient(
    135deg,
    #2ECC71 0%,
    #27AE60 55%,
    #1AB385 100%
  ) !important;
}

.bg-success, .btn-success {
  background: #1AB385 !important;
}

.bg-emerald, .btn-emerald {
  background: #065f46 !important;
}

/* WARNING */
.bg-warning-linear {
  background: linear-gradient(
    135deg,
    #F7C948 0%,
    #F0B429 55%,
    #fc9803 100%
  ) !important;
  color: #212529 !important; /* biar tetap kebaca */
}

.bg-warning, .btn-warning {
  background: #fc9803 !important;
  color: #212529 !important; /* biar tetap kebaca */
}

/* DANGER */
.bg-danger-linear {
  background: linear-gradient(
    135deg,
    #FF5C5C 0%,
    #E74C3C 55%,
    #dc3545 100%
  ) !important;
}

.bg-danger, .btn-danger {
  background: #dc3545 !important;
}

/* ini style BOTTOM TABS*/
.bottom-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 66px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  z-index: 999;
}

.bottom-tabs .tab-item {
  flex: 1;
  border: 0;
  background: transparent;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  padding: 6px 0;
}

.bottom-tabs .tab-item i {
  font-size: 18px;
}

.bottom-tabs .tab-item.active {
  color: #111827;
  font-weight: 700;
}

.bottom-tabs .tab-item.active i {
  transform: translateY(-1px);
}

body {
  padding-bottom: 72px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, "Noto Sans",
                 "Liberation Sans", sans-serif,
                 "Apple Color Emoji", "Segoe UI Emoji",
                 "Segoe UI Symbol", "Noto Color Emoji";
}



/* ===========================
   OPA Mobile Header (Navbar)
   =========================== */

.opa-header {
  background: #2f63d4;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 18px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.opa-header-inner {
  padding-top: 14px;
  padding-left: 18px;
  padding-right: 18px;
}

.opa-header-top {
  margin-bottom: 14px;
}

.opa-brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.opa-top-icons {
  display: flex;
  gap: 14px;
  font-size: 16px;
  opacity: 0.95;
}

.opa-profile {
  padding: 22px 0 10px 0;
}

.opa-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.opa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opa-userinfo .opa-hello {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.opa-userinfo .opa-role {
  margin-top: 4px;
  font-size: 14px;
  opacity: 0.9;
}

.opa-mail-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: 0.2s ease;
}

.primary {
    background-color: linear-gradient(135deg, #2F6BFF 0%, #1E4FD6 55%, #153A9B 100%) !important;
}


/* modal bottom sheets comment style */

 /* Overlay */
.comment-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.comment-sheet.show {
  opacity: 1;
  pointer-events: auto;
}

/* Sheet */
.comment-sheet-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 75vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.comment-sheet.show .comment-sheet-content {
  transform: translateY(0);
}

/* Handle */
.sheet-handle {
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 4px;
  margin: 10px auto 6px;
}

/* Header */
.sheet-header {
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 0 12px;
  border-bottom: 1px solid #eee;
}

/* Body */
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
}

/* Comment Item */
.comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  gap: 6px;
  align-items: center;
}

.comment-name {
  font-weight: 600;
  font-size: 13px;
}

.comment-time {
  font-size: 12px;
  color: #999;
}

.comment-text {
  font-size: 14px;
  margin-top: 2px;
}

/* Input */
.sheet-input {
  border-top: 1px solid #eee;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 50px
}

.input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.sheet-input input {
  border-radius: 20px;
  font-size: 16px !important;
}

.btn-send {
  border: 0;
  background: none;
  font-size: 18px;
}

.modal-child{
    z-index: 2500 !important;
}

.modal-grand-child{
    z-index: 3000 !important;
}

/* activity-skeleton card activity (task request dan issue) */

.activity-skeleton-wrapper{
  transition: opacity .25s ease;
}

.activity-skeleton-wrapper.hide{
  opacity:0;
  pointer-events:none;
  height: 0px;
}

.activity-skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ecef;
}

.activity-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.5),
    transparent
  );
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.activity-skeleton-text {
  height: 12px;
  border-radius: 6px;
}

.activity-skeleton-title {
  height: 16px;
  width: 60%;
  border-radius: 6px;
}

.activity-skeleton-badge {
  width: 70px;
  height: 22px;
  border-radius: 20px;
}

.activity-skeleton-date {
  width: 45px;
  height: 18px;
  border-radius: 6px;
}

.activity-row{
    display: flex;
    flex-direction: row;
    align-items: stretch; /* 🔑 ini kuncinya */
    padding-left: 0px !important;
    padding-bottom: 0px !important
}

.activity-date-box {
    width: 60px;
    min-width: 60px;
    border-right: 2px solid #dee2e6;
    display: flex;
    align-items: center;        /* text tetap center */
    justify-content: center;
    padding: 0 6px;
},

/* ===============================
   ACTIVITY DETAIL SKELETON
================================= */

.activity-detail-skeleton-wrapper{
  animation: activityDetailFade .25s ease;
}

@keyframes activityDetailFade{
  from{opacity:.6}
  to{opacity:1}
}

.activity-detail-skeleton{
  position:relative;
  overflow:hidden;
  background:#e9ecef;
  border-radius:8px;
}

.activity-detail-skeleton::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.55),
    transparent
  );
  animation:activityDetailShimmer 1.2s infinite;
}

@keyframes activityDetailShimmer{
  100%{transform:translateX(100%)}
}

/* sizes */
.activity-detail-skeleton-title{
  height:26px;
  width:65%;
}

.activity-detail-skeleton-badge{
  height:26px;
  width:120px;
  border-radius:20px;
}

.activity-detail-skeleton-line{
  height:14px;
  width:100%;
}

.activity-detail-skeleton-line-sm{
  height:12px;
  width:60%;
}

.activity-detail-skeleton-box{
  height:180px;
  border-radius:14px;
}

.activity-detail-skeleton-btn{
  height:44px;
  width:180px;
  border-radius:999px;
}

.activity-detail-skeleton-thumb{
  width:120px;
  height:120px;
  border-radius:12px;
}