/* ==========================================================================
   C-Panggilan / Pemberitahuan Widget & Single View Styles
   ========================================================================== */

/* --- 1. Embossed List Widget Styling --- */
.c-panggilan-wrapper {
  margin: 0;
  padding: 0;
}

.c-panggilan-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.c-panggilan-view-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #8b1c1c !important;
  text-decoration: none !important;
  background: #fff4ef;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #f9d8cb;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.c-panggilan-view-all:hover {
  background: #8b1c1c;
  color: #ffffff !important;
  border-color: #8b1c1c;
  transform: translateX(2px);
  text-decoration: none !important;
}

.c-panggilan-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.c-panggilan-item {
  display: block;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 16px;
  position: relative;
  text-decoration: none !important;

  /* Emboss Shadow Effect */
  box-shadow: 5px 5px 12px rgba(163, 177, 198, 0.35),
              -5px -5px 12px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.c-panggilan-item:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 16px rgba(163, 177, 198, 0.45),
              -7px -7px 16px rgba(255, 255, 255, 1);
  text-decoration: none !important;
}

/* Header Row & Sequential Numbering (#1, #2, #3 ... #10) */
.c-panggilan-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.c-panggilan-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  background: linear-gradient(135deg, #771706 0%, #8e1e08 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 0 6px;
  box-shadow: 0 2px 5px rgba(119, 23, 6, 0.25);
}

/* Badge Jenis (Panggilan / Pemberitahuan) */
.c-panggilan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
}

.c-panggilan-badge.badge-panggilan {
  background: #fff4ef;
  color: #8b1c1c;
  border: 1px solid #f9d8cb;
}

.c-panggilan-badge.badge-pemberitahuan {
  background: #eef7ff;
  color: #005696;
  border: 1px solid #cce5ff;
}

/* Judul List */
.c-panggilan-title {
  font-size: 14px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.c-panggilan-item:hover .c-panggilan-title {
  color: #8b1c1c;
}

/* Meta Details (Nomor Perkara & Tanggal) */
.c-panggilan-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #718096;
}

.c-panggilan-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.c-panggilan-meta-item i {
  color: #8b1c1c;
  font-size: 13px;
}

/* Empty State */
.c-panggilan-empty {
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  border-radius: 8px;
  color: #718096;
  font-size: 13px;
}

/* --- 2. Single Detail Page Styling --- */
.c-panggilan-single-container {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.c-panggilan-single-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #edf2f7;
}

.c-panggilan-single-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a202c;
  line-height: 1.4;
  margin: 10px 0 0 0;
}

/* Detail Grid Info Box */
.c-panggilan-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.c-panggilan-info-cell {
  display: flex;
  flex-direction: column;
}

.c-panggilan-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #718096;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.c-panggilan-info-value {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

/* PDF Preview Box */
.c-panggilan-pdf-box {
  margin-top: 24px;
  margin-bottom: 24px;
}

.c-panggilan-pdf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.c-panggilan-pdf-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2d3748;
  margin: 0;
}

.c-panggilan-pdf-iframe {
  width: 100%;
  height: 650px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background: #f7fafc;
}

/* Download Button Styling */
.c-panggilan-download-wrap {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}

.c-panggilan-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #771706 0%, #8e1e08 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(119, 23, 6, 0.3);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.c-panggilan-btn-download:hover {
  background: linear-gradient(135deg, #8e1e08 0%, #a3220a 100%);
  box-shadow: 0 6px 20px rgba(119, 23, 6, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .c-panggilan-pdf-iframe {
    height: 450px;
  }
}

/* Search Form in Archive Page */
.c-panggilan-search-bar {
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.c-panggilan-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e0 !important;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 12px center !important;
  transition: all 0.2s ease !important;
}

.c-panggilan-search-input:focus {
  border-color: #8b1c1c !important;
  box-shadow: 0 0 0 3px rgba(139, 28, 28, 0.15) !important;
  outline: none !important;
}

.c-panggilan-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #771706 0%, #8e1e08 100%);
  color: #ffffff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(119, 23, 6, 0.25);
}

.c-panggilan-search-btn:hover {
  background: linear-gradient(135deg, #8e1e08 0%, #a3220a 100%);
  box-shadow: 0 4px 12px rgba(119, 23, 6, 0.35);
  transform: translateY(-1px);
}

.c-panggilan-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf2f7;
  color: #4a5568 !important;
  border: 1px solid #cbd5e0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.c-panggilan-reset-btn:hover {
  background: #e2e8f0;
  color: #1a202c !important;
}
