.modal-detail-pasien {
	/* ============================================
   MODAL DETAIL PASIEN - MODERN CLEAN DESIGN
   Theme: Medical/Aesthetic Clinic Dashboard
   Primary Color: #006766 (Emerald Green)
   ============================================ */

	/* Modal Container */
	.modal-dialog {
		max-width: 1200px;
		width: 95%;
		margin: 30px auto;
	}

	.modal-content {
		border-radius: 12px !important;
		border: none;
		box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	}

	/* ============================================
   HEADER SECTION - Dark Green Gradient
   ============================================ */
	.modal-header-detail-pasien {
		background: linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-image: url("/assets/images/background-hayyu.png"), linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-size: cover;
		background-position: center;
		background-blend-mode: overlay;
		padding: 24px !important;
		border: none;
		position: relative;
		border-top-left-radius: 12px;
		border-top-right-radius: 12px;
	}

	.modal-header-detail-pasien .close {
		position: absolute;
		top: 7px;
		right: 15px;
		color: white;
		opacity: 0.9;
		z-index: 10;
		font-size: 28px;
		font-weight: 300;
		text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
		border: 0 !important;
		outline: 0 !important;
	}

	.modal-header-detail-pasien .close:hover {
		opacity: 1;
	}

	/* Header Content Layout */
	.header-content-wrapper {
		padding-top: 1.25rem;
		width: 100%;
	}

	/* Profile Section (Left) */
	.profile-section {
		display: flex;
		gap: 20px;
		align-items: center;
		background: rgba(255, 255, 255, 0.08);
		backdrop-filter: blur(1px);
		border-radius: 12px;
		padding: 18px;
		border: 1px solid rgba(255, 255, 255, 0.2);
		height: 100%;
	}

	.profile-photo-circle {
		width: 130px;
		height: 130px;
		border-radius: 50%;
		overflow: hidden;
		background: white;
		flex-shrink: 0;
		position: relative;
	}

	.profile-photo-circle img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
	}

	.profile-photo-fallback {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: none;
		align-items: center;
		justify-content: center;
		background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
	}

	.profile-photo-fallback i {
		font-size: 50px;
		color: #006766;
	}

	.profile-details {
		color: white;
	}

	.profile-name {
		font-size: 20px;
		font-weight: 700;
		margin: 0 0 6px 0;
		color: white;
		letter-spacing: -0.5px;
	}

	.profile-subtitle {
		font-size: 16px;
		margin: 4px 0;
		opacity: 0.95;
		font-weight: 400;
	}

	.profile-regno {
		font-size: 16px;
		margin: 4px 0 10px 0;
		opacity: 0.9;
	}

	.stage-badge {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		background: #006766;
		border: 2px solid rgba(255, 255, 255, 0.4);
		padding: 10px 22px;
		border-radius: 50px;
		font-size: 16px;
		font-weight: 600;
		color: white;
	}

	.stage-badge .stage-icon {
		font-size: 20px;
		line-height: 1;
	}

	.stage-badge .stage-text {
		line-height: 1;
	}

	/* Stats Section (Right - Stacked Vertical) */
	.stats-section {
		display: flex;
		flex-direction: column;
		gap: 12px;
		height: 100%;
	}

	.stat-card {
		background: rgba(255, 255, 255, 0.08);
		backdrop-filter: blur(1px);
		border-radius: 12px;
		padding: 14px 18px;
		display: flex;
		align-items: center;
		gap: 14px;
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	.stat-card i {
		font-size: 26px;
		color: white;
		width: 40px;
		text-align: center;
	}

	.stat-info {
		flex: 1;
	}

	.stat-value {
		font-size: 16px;
		font-weight: 700;
		color: white;
		margin: 0;
		line-height: 1.2;
	}

	.stat-label {
		font-size: 15px;
		color: rgba(255, 255, 255, 0.85);
		margin: 2px 0 0 0;
	}

	/* ============================================
   MODAL BODY - Two Column Layout
   ============================================ */
	.modal-body-detail-pasien {
		padding: 24px;
		background: #f8f9fa;
		border-bottom-left-radius: 12px;
		border-bottom-right-radius: 12px;
	}

	.card-section {
		background: white;
		border-radius: 12px;
		border: 1px solid #e2e8f0;
	}

	/* Section Heading Outside Card */
	.section-heading-outside {
		font-size: 16px;
		font-weight: 600;
		color: #212529;
		margin: 0 0 8px 0;
	}

	/* ============================================
   INFO ROWS
   ============================================ */
	.info-rows {
		display: flex;
		flex-direction: column;
	}

	.info-row {
		display: flex;
		align-items: center;
		gap: 20px;
		padding: 14px 20px;
		border-bottom: 1px solid #e2e8f0;
	}

	.info-row:last-child {
		border-bottom: none;
	}

	.info-row-highlight {
		background: #e6f0f0;
	}

	.info-row-warning {
		background: #F8F4F1;
		border-left: none;
	}

	.info-label-warning {
		font-size: 16px;
		font-weight: 600;
		color: #927106;
		display: flex;
		align-items: center;
		gap: 6px;
		margin-bottom: 6px;
	}

	.info-label-warning i {
		font-size: 15px;
		color: #927106;
	}

	.catatan-customer-list {
		margin: 0;
		padding-left: 20px;
		display: flex;
		flex-direction: column;
		gap: 4px;
	}

	.catatan-customer-list li {
		font-size: 16px;
		color: #927106;
	}

	.info-content {
		flex: 1;
		display: flex;
		flex-direction: column;
		gap: 3px;
	}

	.info-content-row {
		flex: 1;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
	}

	.info-label-sm {
		font-size: 16px;
		color: #212529;
		font-weight: 500;
		letter-spacing: 0.3px;
	}

	.info-value-sm {
		font-size: 14px;
        color: #6c757d;
		font-weight: 400;
	}

	.info-value-sm.text-muted {
		color: #6c757d;
		font-size: 12px;
	}

	.info-value-lg {
		font-size: 16px;
		color: #006766;
		font-weight: 700;
	}

	/* Alamat Header (untuk badge Utama) */
	.alamat-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 2px;
	}

	.alamat-badge-utama {
		background: #006766;
		color: white;
		padding: 4px 10px;
		border-radius: 12px;
		font-size: 10px;
		font-weight: 600;
		text-transform: uppercase;
	}

	/* ============================================
   VOUCHER CARDS - Modern Fintech Style
   ============================================ */
	.voucher-cards {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	.voucher-card {
		background: linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-image: url("/assets/images/background-hayyu.png"), linear-gradient(135deg, #004d4d 0%, #006766 50%, #008080 100%);
		background-size: cover;
		background-position: center;
		background-blend-mode: overlay;
		border-radius: 16px;
		padding: 18px 20px;
		position: relative;
		overflow: hidden;
		box-shadow: 0 4px 12px rgba(0, 103, 102, 0.15);
	}

	/* Glow effect on right side */
	.voucher-card::after {
		content: "";
		position: absolute;
		top: -30%;
		right: -10%;
		width: 150px;
		height: 150px;
		background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
		border-radius: 50%;
		pointer-events: none;
	}

	.voucher-header {
		margin-bottom: 14px;
		position: relative;
		z-index: 1;
	}

	.voucher-title {
		font-size: 15px;
		font-weight: 600;
		color: white;
		line-height: 1.4;
		display: block;
	}

	.voucher-value-pill {
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-radius: 12px;
		padding: 14px 20px;
		display: flex;
		width: 100%;
		align-items: center;
		gap: 14px;
		margin-bottom: 14px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
		position: relative;
		z-index: 1;
	}

	.voucher-icon {
		width: 40px;
		height: 40px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.voucher-icon i {
		color: white;
		font-size: 18px;
	}

	.voucher-amount-large {
		font-size: 24px;
		font-weight: 700;
		color: #004d4d;
		letter-spacing: -0.5px;
	}

	.voucher-minimal {
		font-size: 15px;
		color: white;
		opacity: 0.95;
		position: relative;
		z-index: 1;
		font-weight: 500;
	}

	/* ============================================
   PAKET AKTIF - NEW DESIGN (using info-row)
   ============================================ */
	.info-row-paket {
		padding: 16px 20px;
	}

	.info-label-paket {
		font-size: 14px;
		font-weight: 600;
		color: #212529;
		display: block;
		margin-bottom: 8px;
	}

	.paket-detail-list {
		list-style-position: inside;
		padding-left: 0;
		margin: 0;
		color: #6c757d;
	}

	.paket-detail-list li {
		font-size: 12px;
		color: #6c757d;
		padding: 4px 0;
		line-height: 1.6;
	}

	/* ============================================
   UPCOMING RESERVATION
   ============================================ */
	.info-value-reservation {
		font-size: 16px;
		font-weight: 500;
		color: #212529;
		display: block;
	}

	.info-reservation-details {
		font-size: 14px;
		color: #6c757d;
		line-height: 1.6;
	}

	/* ============================================
   HISTORY CUSTOMER CARD
   ============================================ */
	.card-history-customer {
		padding: 16px 20px;
	}

	.history-customer-content {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.history-customer-label {
		font-size: 16px;
		font-weight: 600;
		color: #212529;
	}

	.btn-lihat-detail {
		background: #fff;
		color: #006766;
		border: none;
		padding: 8px 16px;
		border-radius: 8px;
        border: 1px solid #e2e8f0;
		font-size: 15px;
		font-weight: 500;
		transition: background 0.2s;
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}

	.btn-lihat-detail i {
		font-size: 14px;
	}

	/* ============================================
   MODAL FOOTER
   ============================================ */
	.modal-footer-detail-pasien {
		padding: 16px 24px;
		border-top: none;
		background: #016363;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		border-bottom-left-radius: 12px;
		border-bottom-right-radius: 12px;
	}

	.btn-secondary {
		background: #ffffff;
		color: #005c5c;
		border: none;
		padding: 10px 20px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 600;
	}

	.btn-secondary:hover {
		background: #f0f0f0;
		color: #005c5c;
	}

    .btn-outline-primary {
        color: #006766;
        border-color: #006766;
    }

	.btn-outline-primary:hover,
	.btn-outline-primary:focus,
	.btn-outline-primary:active,
	.btn-outline-primary:focus:active {
		background-color: #006766 !important;
		border-color: #006766 !important;
		color: #fff !important;
	}

	/* ============================================
   RESPONSIVE
   ============================================ */
	@media (max-width: 991px) {
		.profile-section {
			margin-bottom: 12px;
		}
	}

	@media (max-width: 576px) {
		.modal-detail-pasien .modal-dialog {
			width: 98%;
			margin: 10px auto;
		}

		.profile-section {
			flex-direction: column;
			align-items: center;
			text-align: center;
		}
	}
    /* ============================================
       SKELETON LOADING - Premium Shimmer Effect
       ============================================ */

    /* Shimmer keyframe — defined at top level below, outside this selector block */

    /* Base skeleton element */
    .sk-line,
    .sk-avatar,
    .sk-badge,
    .sk-icon-circle,
    .sk-stat-card,
    .sk-section-title,
    .sk-voucher-card,
    .sk-voucher-pill,
    .sk-btn-placeholder,
    .sk-highlight-row {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.06) 0%,
            rgba(255,255,255,0.18) 30%,
            rgba(255,255,255,0.06) 60%
        );
        background-size: 600px 100%;
        animation: sk-shimmer 1.6s ease-in-out infinite;
        border-radius: 6px;
    }

    /* ---- Header skeleton overrides (dark bg) ---- */
    .modal-header-detail-pasien .sk-line,
    .modal-header-detail-pasien .sk-avatar,
    .modal-header-detail-pasien .sk-badge,
    .modal-header-detail-pasien .sk-stat-card {
        background: linear-gradient(
            90deg,
            rgba(255,255,255,0.08) 0%,
            rgba(255,255,255,0.22) 30%,
            rgba(255,255,255,0.08) 60%
        );
        background-size: 600px 100%;
        animation: sk-shimmer 1.6s ease-in-out infinite;
    }

    /* ---- Body skeleton (light bg) ---- */
    .modal-body-detail-pasien .sk-line,
    .modal-body-detail-pasien .sk-icon-circle,
    .modal-body-detail-pasien .sk-section-title,
    .modal-body-detail-pasien .sk-voucher-card,
    .modal-body-detail-pasien .sk-voucher-pill,
    .modal-body-detail-pasien .sk-btn-placeholder,
    .modal-body-detail-pasien .sk-highlight-row {
        background: linear-gradient(
            90deg,
            #e8ecef 0%,
            #f5f7f9 35%,
            #e8ecef 60%
        );
        background-size: 600px 100%;
        animation: sk-shimmer 1.6s ease-in-out infinite;
    }

    /* Avatar / Profile photo skeleton */
    .sk-avatar {
        width: 130px;
        height: 130px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Stage badge skeleton */
    .sk-badge {
        width: 160px;
        height: 42px;
        border-radius: 50px;
    }

    /* Stat card skeleton inside header */
    .sk-stat-card {
        height: 64px;
        border-radius: 12px;
    }

    /* Generic line variants */
    .sk-line {
        height: 14px;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .sk-line-label { height: 16px; }
    .sk-line-title { height: 22px; }

    .sk-line-20  { width: 20%; }
    .sk-line-30  { width: 30%; }
    .sk-line-35  { width: 35%; }
    .sk-line-40  { width: 40%; }
    .sk-line-45  { width: 45%; }
    .sk-line-50  { width: 50%; }
    .sk-line-55  { width: 55%; }
    .sk-line-60  { width: 60%; }
    .sk-line-65  { width: 65%; }
    .sk-line-70  { width: 70%; }
    .sk-line-80  { width: 80%; }

    /* Section title outside card */
    .sk-section-title {
        height: 18px;
        width: 40%;
        border-radius: 4px;
        margin-bottom: 8px;
    }

    .sk-section-title-spread {
        width: 100%;
        height: auto;
        background: transparent !important;
        animation: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Icon circle in info row */
    .sk-icon-circle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    /* Info row layout */
    .sk-info-rows {
        display: flex;
        flex-direction: column;
    }

    .sk-info-row {
        display: flex;
        align-items: center;
        gap: 20px;
        padding: 14px 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .sk-info-row:last-child {
        border-bottom: none;
    }

    .sk-info-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* Highlight row skeleton */
    .sk-highlight-row {
        height: 48px;
        border-radius: 0;
        display: flex;
        align-items: center;
        padding: 0 20px;
        gap: 0;
        background-clip: padding-box;
    }

    /* Voucher card skeleton */
    .sk-voucher-card {
        border-radius: 16px;
        padding: 18px 20px;
        background: linear-gradient(
            90deg,
            #d4e5e5 0%,
            #e8f2f2 35%,
            #d4e5e5 60%
        ) !important;
        background-size: 600px 100% !important;
        animation: sk-shimmer 1.6s ease-in-out infinite !important;
        min-height: 130px;
    }

    /* Voucher pill inside voucher skeleton */
    .sk-voucher-pill {
        height: 56px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    /* Button placeholder */
    .sk-btn-placeholder {
        width: 110px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    /* Staggered animation delays for a wave-like feel */
    .sk-info-row:nth-child(1) .sk-line,
    .sk-info-row:nth-child(1) .sk-icon-circle { animation-delay: 0s; }
    .sk-info-row:nth-child(2) .sk-line,
    .sk-info-row:nth-child(2) .sk-icon-circle { animation-delay: 0.1s; }
    .sk-info-row:nth-child(3) .sk-line,
    .sk-info-row:nth-child(3) .sk-icon-circle { animation-delay: 0.2s; }
    .sk-info-row:nth-child(4) .sk-line,
    .sk-info-row:nth-child(4) .sk-icon-circle { animation-delay: 0.3s; }
    .sk-info-row:nth-child(5) .sk-line,
    .sk-info-row:nth-child(5) .sk-icon-circle { animation-delay: 0.4s; }
    .sk-info-row:nth-child(6) .sk-line,
    .sk-info-row:nth-child(6) .sk-icon-circle { animation-delay: 0.5s; }
    .sk-info-row:nth-child(7) .sk-line,
    .sk-info-row:nth-child(7) .sk-icon-circle { animation-delay: 0.6s; }


}

/* ============================================
   SKELETON KEYFRAMES — must be at top level,
   cannot be nested inside a selector.
   ============================================ */
@keyframes sk-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}


