/* =====================================================
   BUTTON COMPONENTS
===================================================== */

.btn-gradient {
  background: linear-gradient(90deg, #ff9800, #ff7300);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 32px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(90deg, #ffb347, #ff8c00);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.btn-gradient:active {
  transform: scale(0.98);
  box-shadow: none;
}

/* =====================================================
   CARD COMPONENTS
===================================================== */

.card-service {
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-service img {
  height: 180px;
  object-fit: contain;
  border-bottom: 1px solid #eeeeee;
}

/* =====================================================
   STATUS / BADGE COMPONENTS
===================================================== */

.status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-approve {
  background-color: #d1fae5;
  color: #065f46;
}

.status-process {
  background-color: #fff3cd;
  color: #856404;
}

.status-reject {
  background-color: #fde2e2;
  color: #991b1b;
}

/* KELENGKAPAN */
.kelengkapan-lengkap {
  background: #198754;
  color: #fff;
}

.kelengkapan-tidak {
  background: #dc3545;
  color: #fff;
}

/* =====================================================
   KELENGKAPAN BADGE
===================================================== */

.kelengkapan-lengkap {
  background-color: #d1fae5;
  color: #065f46;
}

.kelengkapan-belum {
  background-color: #fde2e2;
  color: #991b1b;
}

/* =====================================================
   ACTION BUTTON (VIEW / EDIT)
===================================================== */

.btn-view {
  background-color: #0d6efd;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
}

.btn-view:hover {
  background-color: #0b5ed7;
  color: #ffffff;
}

.btn-edit {
  background-color: #e5e7eb;
  color: #374151;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
}

.btn-edit:hover {
  background-color: #d1d5db;
}

/* =====================================================
   LOGO SLIDER COMPONENT
===================================================== */

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide-track {
  display: flex;
  width: max-content;
  animation: moveLogos 20s linear infinite;
}

.logo-item {
  transition: transform 0.4s ease;
}

.logo-item:hover {
  transform: scale(1.15);
}

@keyframes moveLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.sinanas-mobile {
  background: linear-gradient(90deg, #ff9800 0%, #ff7300 100%);
  color: #fff;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.sinanas-mobile h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.sinanas-mobile p {
  font-size: 1rem;
  color: #f4f4f4;
}

/* Gaya gambar HP */
.mockup-phone {
  height: 350px;
  max-width: 100%;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.second-phone {
  position: absolute;
  bottom: -10px;
  right: 60px;
  height: 320px;
  z-index: 1;
}

/* Pelayanan Perizinan */
.card-service {
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-service:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-service img {
  height: 180px;
  object-fit: contain;
  border-bottom: 1px solid #eee;
}

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  /* Biar baris pertama hanya 2 card dan center */
  .row.justify-content-center > .col-lg-5 {
    flex: 0 0 auto;
    width: 45%;
  }
}
.btn-wa {
  background: #25d366;
  border-radius: 50px;
  font-size: 1.2rem;
  padding: 14px 40px;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.btn-wa:hover {
  background: #1ca956;
  transform: translateY(-3px);
}

/* =========================
   USER PROFILE DROPDOWN
========================= */
.btn-user {
  background: transparent;
  border: none;
  padding: 6px 10px;
}

.btn-user:focus {
  box-shadow: none;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1b2733;
}

.user-role {
  font-size: 0.8rem;
  color: #6c757d;
}

/* =========================
   USER AVATAR (ADJUSTABLE)
========================= */
/* WADAH AVATAR */
.avatar-wrapper {
  width: 40px;
  height: 40px;
  flex-shrink: 0; /* PENTING */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* AVATAR */
.user-avatar {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  object-fit: cover;

  display: block;
  border: 1px solid #e5e7eb;
}
.chat-panel {
  height: 300px;
  border: 1px solid #0d6efd;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chat-bubble {
  max-width: 320px;
  background: #aee1ff;
  padding: 12px;
  border-radius: 8px;
  margin-left: auto;
  margin-bottom: 15px;
  font-size: 14px;
}

.chat-time {
  font-size: 11px;
  text-align: right;
  margin-top: 6px;
  color: #555;
}
.chat-panel {
  height: 300px;
  overflow: visible !important;
}
