html, body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
  
* {
  -webkit-text-size-adjust: 100%;
}


@media (max-width: 768px) {

    .table-room,
    .table-room thead,
    .table-room tbody,
    .table-room th,
    .table-room td,
    .table-room tr {
        display: block;
        width: 100%;
    }

    .table-room thead {
        display: none;
    }

    .table-room tr {
        margin-bottom: 12px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #ffffff;
        overflow: visible;   /* ✅ dropdown sekarang boleh keluar kartu */
    }

    .table-room td {
        display: flex;
        justify-content: space-between;
        padding: 8px 12px;
        border: none;
        border-bottom: 1px solid #f5f5f5;
        font-size: 14px;
    }

    .table-room td:last-child {
        border-bottom: none;
    }

    .table-room td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
        color: #555;
    }

    .table-room td.date-cell {
        display: block;
        font-weight: 600;
        background: #f7f7ff;
        border-bottom: 1px solid #e0e0ff;
    }
}

.tooltip-inner {
    text-align: left !important;
}

.tooltip-inner {
    text-align: left !important;
    white-space: normal !important; /* agar bisa multiline */
    padding-left: 5px;
    padding-right: 5px;
}

.wrap-text {
    white-space: normal !important;
    word-wrap: break-word;
}

/* Default: tombol tampil (desktop) */
.btn-android {
  display: inline-block;
}

/* Jika layar mobile (≤ 768px) → hide */
@media (max-width: 768px) {
  .btn-android {
    display: none;
  }
}


.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, #4c5bd4, #5f6be6);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(60px + env(safe-area-inset-bottom));  
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: white;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bottom-nav a i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav a:hover {
  background: rgba(255,255,255,0.08);
}



@media (min-width: 768px) {
  .bottom-nav {
     display: none;
  }
}

/* ==== Ticket / Attendee Info (Reservation Form) ==== */
.widget-heading .ticket-info{
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: #f8fafc; /* soft */
}

.widget-heading .ticket-info h6{
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #1f2937;
}

.widget-heading .ticket-info ul{
  margin: 0;
  padding: 0;
}

.widget-heading .ticket-info ul li{
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,.08);
  font-size: 13px;
  color: #374151;
}

.widget-heading .ticket-info ul li:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.widget-heading .ticket-info ul li strong{
  flex: 0 0 110px;      /* lebar label */
  font-weight: 700;
  color: #111827;
}

.widget-heading .ticket-info ul li span,
.widget-heading .ticket-info ul li b,
.widget-heading .ticket-info ul li{
  word-break: break-word;
}

/* highlight harga */
.widget-heading .ticket-info ul li.price-row{
  background: rgba(59,130,246,.08);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(59,130,246,.18);
  margin-top: 10px;
}

.widget-heading .ticket-info ul li.price-row strong{
  color: #1d4ed8;
}

.widget-heading .ticket-info ul li.price-row .price{
  font-weight: 800;
  color: #111827;
}

/* responsive: label di atas value */
@media (max-width: 576px){
  .widget-heading .ticket-info ul li{
    flex-direction: column;
    gap: 4px;
  }
  .widget-heading .ticket-info ul li strong{
    flex: none;
  }
}

.profile-photo-preview{
    width:150px;
    height:150px;
    object-fit:cover;
    border-radius:50%;
    border:4px solid #e5e9f2;
}

.custom-file-upload-wrapper {
    display: inline-block;
}

#file-name {
    font-size: 13px;
    word-break: break-word;
}

.participant-name-box .name-view,
.participant-name-box .name-edit {
    max-width: 650px;
}

.participant-name-box .input-group .form-control {
    min-height: 42px;
}

.participant-name-box .btn {
    min-width: 70px;
}

.name-alert-success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.name-alert-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.notif-wrapper {
    position: relative;
    display: inline-block;
}

.notif-badge {
    animation: bounce 1.5s infinite;
      
    position: absolute;
    top: -6px;
    right: -6px;

    background: #ff3b3b;
    color: #fff;

    font-size: 10px;
    font-weight: bold;

    padding: 3px 6px;
    border-radius: 50%;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 0 0 2px #3b4cca; /* biar nyatu sama navbar */
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}


.notification-menu {
    width: 380px !important;
    min-width: 380px !important;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

.notification-scroll {
    max-height: 420px;
    overflow-y: auto;
}

.notification-header {
    background: #f8f9fa;
    border-bottom: 1px solid #ececec;
    padding-top: 12px;
    padding-bottom: 12px;
}

.notification-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.notification-header small {
    color: #777;
}

.notification-item {
    white-space: normal;
    padding: 12px 14px;
    border-bottom: 1px solid #f2f2f2;
}

.notification-item:hover {
    background: #f8fbff;
}

.notification-item.unread {
    background: #f5f9ff;
}

.notification-item .media {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.notification-item .notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notif-icon-info {
    background: rgba(67, 97, 238, 0.12);
    color: #4361ee;
}

.notif-icon-success {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
}

.notif-icon-warning {
    background: rgba(255, 159, 67, 0.12);
    color: #ff9f43;
}

.notif-icon-danger {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.notification-item .data-info h6 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.notification-item.unread .data-info h6 {
    font-weight: 700;
}

.notification-item .data-info p {
    margin: 0 0 4px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.notification-item .data-info small {
    color: #999;
    font-size: 11px;
}

.notif-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4361ee;
    position: absolute;
    right: 0;
    top: 4px;
}

.notification-footer {
    background: #fff;
    border-top: 1px solid #ececec;
    font-weight: 600;
}

.notification-footer a {
    color: #4361ee;
    text-decoration: none;
}