:root{
  --sw-red: #c5392f;        /* merah lembut */
  --sw-red-2:#e04b3f;
  --sw-orange:#f08a24;
  --sw-cream:#fff6f1;
  --sw-bg:#ffffff;
  --sw-border:#eadfda;
  --sw-muted:#6b6b6b;

  --sw-main-bg:#fff2f1;
  --sw-sel-bg:#fff8ee;
  --sw-ads-bg:#fff1e2;
}

body{
  background: var(--sw-bg);
  color:#1f1f1f;
}

.sw-topbar{
  background: linear-gradient(180deg, var(--sw-cream), #ffffff);
  border-bottom: 1px solid var(--sw-border);
}

.sw-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--sw-red);
}

.sw-subtitle{
  font-size: 13px;
  color: var(--sw-muted);
}

.sw-btn{
  border-radius: 12px;
}

.sw-btn-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
}

.sw-btn-icon svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sw-controls{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sw-jump-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sw-jump-field{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sw-jump-label{
  font-size: 12px;
  color: var(--sw-muted);
}

.sw-jump-input{
  min-width: 0;
}

.sw-jump-actions{
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.sw-modal .modal-dialog{
  max-width: 420px;
}

.sw-modal .modal-content{
  border-radius: 16px;
  border: 1px solid var(--sw-border);
}

.sw-modal .modal-header{
  border-bottom: 1px solid var(--sw-border);
}

.sw-modal .modal-body{
  padding: 16px 20px 20px;
}

.sw-modal.fade .modal-dialog{
  transform: translateY(16px) scale(0.98);
  transition: transform .2s ease-out;
}

.sw-modal.show .modal-dialog{
  transform: translateY(0) scale(1);
}

.sw-calendar-wrap{
  overflow-x: auto;
  padding: 12px 6px 0;
}

.sw-calendar-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 10px;
  min-width: 1200px; /* biar rapi; mobile tinggal scroll */
  align-items: stretch;
}

.sw-dow{
  text-align:center;
  font-weight: 800;
  padding: 10px 8px;
  border: 1px solid var(--sw-border);
  border-radius: 14px;
  background: #fff;
  color: #2b2b2b;
}

.sw-cell{
  border: 1px solid var(--sw-border);
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  min-height: 160px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  position: relative;
}

.sw-cell--empty{
  background: #fafafa;
}

.sw-cell.is-today{
  outline: 3px solid rgba(240, 138, 36, .25);
  border-color: rgba(240, 138, 36, .55);
}

.sw-date{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 8px;
}

.sw-date-num{
  font-weight: 900;
  font-size: 18px;
  color: #1f1f1f;
}

.sw-date-ymd{
  font-size: 11px;
  color: var(--sw-muted);
}

.sw-empty{
  font-size: 12px;
  color: var(--sw-muted);
  padding: 10px 8px;
  border: 1px dashed var(--sw-border);
  border-radius: 12px;
  background: #fffdfc;
}

.sw-slot{
  border-radius: 14px;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid var(--sw-border);
}

.sw-slot--main{ background: var(--sw-main-bg); }
.sw-slot--selingan{ background: var(--sw-sel-bg); }
.sw-slot--ads{ background: var(--sw-ads-bg); }

.sw-slot-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom: 8px;
}

.sw-slot-title{
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #3a3a3a;
}

.sw-item{
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed rgba(0,0,0,.08);
}

.sw-item:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.sw-item-title{
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
}

.sw-item-title-row{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.sw-item-title-text{
  flex: 1;
  min-width: 0;
}

.sw-item-title a{
  color: var(--sw-red);
  text-decoration: none;
}

.sw-item-title a:hover{
  text-decoration: underline;
}

.sw-item-meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top: 6px;
}

.sw-item--viral{
  border: 1px solid rgba(168, 85, 247, .45);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(168, 85, 247, .12), rgba(255, 255, 255, 0));
  position: relative;
}

.sw-item--viral .sw-item-title a{
  color: #6d28d9;
}

.sw-viral-icon{
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(109, 40, 217, .25));
}

/* ===== Status pills (warna-warni, soft) ===== */
.status{
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: #2b2b2b;
  font-weight: 800;
  letter-spacing: .15px;
}

/* Disetujui (biru muda) */
.status--ok{
  background: rgba(59, 130, 246, .14);
  border-color: rgba(59, 130, 246, .35);
  color: #1d4ed8;
}

/* Terunggah (hijau muda) */
.status--uploaded-ok{
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .35);
  color: #15803d;
}

/* Ditolak (merah muda) */
.status--bad{
  background: rgba(239, 68, 68, .14);
  border-color: rgba(239, 68, 68, .35);
  color: #b91c1c;
}

/* Pending / belum (orange muda) */
.status--pending{
  background: rgba(245, 158, 11, .14);
  border-color: rgba(245, 158, 11, .35);
  color: #b45309;
}

.sw-item-note{
  margin-top: 6px;
  font-size: 12px;
  color: #4a4a4a;
}

.sw-item-note--viral{
  background: rgba(168, 85, 247, .12);
  border: 1px dashed rgba(168, 85, 247, .4);
  padding: 6px 8px;
  border-radius: 8px;
}

.sw-tags{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top: 8px;
}

/* ===== Tag badges (warna-warni) ===== */
.sw-tag{
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: .2px;
}

/* Regular = slate soft */
.sw-tag.tag-regular{
  background: rgba(100, 116, 139, .14);
  border-color: rgba(100, 116, 139, .35);
  color: #334155;
}

/* Ads = orange soft */
.sw-tag.tag-ads{
  background: rgba(245, 158, 11, .16);
  border-color: rgba(245, 158, 11, .40);
  color: #b45309;
}

/* Viral = ungu soft */
.sw-tag.tag-viral{
  background: rgba(168, 85, 247, .14);
  border-color: rgba(168, 85, 247, .35);
  color: #6d28d9;
}

/* Req TC = teal soft */
.sw-tag.tag-reqtc{
  background: rgba(20, 184, 166, .14);
  border-color: rgba(20, 184, 166, .35);
  color: #0f766e;
}

/* Fallback */
.sw-tag.tag-other{
  background: rgba(148, 163, 184, .14);
  border-color: rgba(148, 163, 184, .35);
  color: #475569;
}

.sw-item.is-hidden{
  display: none;
}

.sw-slot.is-hidden{
  display: none;
}

.sw-filter-empty{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--sw-border);
  font-size: 12px;
  color: var(--sw-muted);
  display: none;
  background: #fffdfc;
}

.sw-cell.is-filtered-empty .sw-filter-empty{
  display: block;
}

.sw-filter-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sw-filter-group{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--sw-border);
}

.sw-filter-group:last-of-type{
  border-bottom: 0;
  padding-bottom: 0;
}

.sw-filter-title{
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #3a3a3a;
}

.sw-filter-option{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2b2b2b;
}

.sw-filter-option input{
  accent-color: var(--sw-red-2);
}

.sw-filter-help{
  font-size: 11px;
  color: var(--sw-muted);
}

/* Responsive tweak */
@media (max-width: 768px){
  .sw-controls{
    display: none;
    width: 100%;
  }

  .sw-controls.is-open{
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .sw-calendar-grid{
    min-width: 980px;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
  }
}
