:root {
	--primary: #F4C430;
	--secondary: #2E7D32;
	--accent: #8B3A2E;
	--background: #FAFAF7;
	--card-bg: #FFFFFF;
	--text-primary: #2C2C2C;
	--text-white: #FFFFFF;
	--text-secondary: #6B6B6B;
	--border-radius: 16px;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	--shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.08);
	
	/* Sistem font-size proporsional - RASIO 1.25 */
	--font-size-base: 16px;
	--font-scale-ratio: 1.25;
	
	/* Skala tipe dengan rasio 1.25 */
	--font-size-xs: calc(var(--font-size-base) / var(--font-scale-ratio));
	--font-size-sm: var(--font-size-base);
	--font-size-md: calc(var(--font-size-base) * var(--font-scale-ratio));
	--font-size-lg: calc(var(--font-size-base) * var(--font-scale-ratio) * 1.1);
	--font-size-xl: calc(var(--font-size-base) * var(--font-scale-ratio) * 1.25);
}

.upload-area.drag-over {
	border-color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
	transition: all 0.3s ease;
}

/* Dark mode styles */
body.dark-mode {
	--background: #121212;
	--card-bg: #1E1E1E;
	--text-primary: #FFFFFF;
	--text-secondary: #AAAAAA;
	--shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	--shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.3);
	/* Warna placeholder yang kontras */
    --placeholder-color: #9E9E9E;
}

body.dark-mode .app-bar {
	background-color: #333;
}

body.dark-mode .bottom-nav {
	background-color: #1E1E1E;
}

body.dark-mode .card-custom {
	background-color: #2D2D2D;
}

body.dark-mode .input-field {
	background-color: #2D2D2D;
	border-color: #444;
	color: white;
}

body.dark-mode .upload-area {
	background-color: #2D2D2D;
	border-color: #444;
}

body.dark-mode input, 
body.dark-mode textarea {
    background-color: #2C2C2C;
    color: var(--text-primary);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}

* {
	font-family: 'Inter', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color: var(--background);
	color: var(--text-primary);
	overflow-x: hidden;
	min-height: 100vh;
	font-size: var(--font-size-sm);
	transition: background-color 0.3s, color 0.3s;
}

.app-container {
	max-width: 480px;
	margin: 0 auto;
	background-color: var(--background);
	position: relative;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
	min-height: 100vh;
}

/* Screen transition animation */
.screen {
	display: none;
	animation: fadeIn 0.3s ease-out;
}

.screen.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Flash screen */
.flash-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--primary);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	color: white;
	font-size: var(--font-size-lg);
}

.flash-logo {
	font-size: 48px;
	margin-bottom: 20px;
}

/* Toast notification */
.toast-container {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1050;
	max-width: 400px;
	width: 90%;
}

.toast-custom {
	background-color: var(--card-bg);
	color: var(--text-primary);
	border-radius: var(--border-radius);
	padding: 15px 20px;
	box-shadow: var(--shadow-hover);
	border-left: 4px solid var(--accent);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.toast-error {
	border-left-color: #dc3545;
}

.toast-success {
	border-left-color: var(--secondary);
}

/* Back button */
.back-btn {
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: var(--font-size-md);
	padding: 5px 10px;
	cursor: pointer;
}

/* Sticky total on payment screen */
.sticky-total {
	position: sticky;
	bottom: 0px;
	background-color: var(--card-bg);
	padding: 15px 20px;
	margin: 10px -20px -10px -20px;
	border-top: 1px solid #f0f0f0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
	z-index: 10;
}

/* Sticky Total sebagai footer di payment screen */
#sticky-total {
    transition: all 0.3s ease;
}

#sticky-total:not(.hidden) {
    display: block !important;
}

/* Safe area untuk iPhone dengan notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #sticky-total {
        padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
    }
}

/* Animasi muncul sticky total */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#sticky-total:not(.hidden) {
    animation: slideUp 0.3s ease-out;
}

body.dark-mode .sticky-total {
	background-color: #2D2D2D;
	border-top-color: #444;
}

/* Student selector */
.student-selector {
	padding: 10px 15px;
	border-radius: 10px;
	background-color: var(--card-bg);
	border: 2px solid #e0e0e0;
	width: 100%;
	font-size: var(--font-size-sm);
	color: var(--text-primary);
	margin-bottom: 15px;
}

body.dark-mode .student-selector {
	background-color: #2D2D2D;
	border-color: #444;
}

/* Keterangan textarea */
.keterangan-textarea {
	width: 100%;
	padding: 15px;
	border-radius: var(--border-radius);
	border: 2px solid #e0e0e0;
	background-color: var(--card-bg);
	color: var(--text-primary);
	font-size: var(--font-size-sm);
	margin-bottom: 15px;
	resize: vertical;
	min-height: 100px;
}

body.dark-mode .keterangan-textarea {
	background-color: #2D2D2D;
	border-color: #444;
}

/* Login Screen */
.login-screen {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 100vh;
	padding: 20px;
	position: relative;
}

.logo-container {
	text-align: center;
	margin-bottom: 40px;
}

.logo {
	width: 80px;
	height: 80px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	color: white;
	font-size: 24px;
}

.logo-dashboard {
	width: 30px;
	height: 30px;
	background: linear-gradient(135deg, var(--primary), var(--secondary));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
}

.logo-text {
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.5px;
}

.logo-subtext {
	color: var(--secondary);
	font-size: var(--font-size-sm);
	font-weight: 500;
}

.form-container {
	width: 100%;
	max-width: 320px;
}

.input-field {
	border: 2px solid #e0e0e0;
	border-radius: 50px;
	padding: 14px 20px;
	font-size: var(--font-size-sm);
	transition: all 0.3s;
	background-color: white;
}

body.dark-mode .input-field {
	background-color: #2D2D2D;
}

.input-field:focus {
	border-color: var(--secondary);
	box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn-primary-custom {
	background-color: var(--primary);
	color: var(--text-primary);
	border: none;
	border-radius: 50px;
	padding: 14px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	width: 100%;
}

.btn-primary-custom:hover {
	background-color: #e6b220;
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

/* Footer untuk login screen */
.login-footer {
	position: absolute;
	bottom: 30px;
	width: 100%;
	text-align: center;
	color: var(--text-secondary);
	font-size: var(--font-size-xs);
	padding: 0 20px;
}

/* App Bar */
.app-bar {
	background-color: var(--primary);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	box-shadow: 0 4px 12px rgba(244, 196, 48, 0.2);
	position: sticky;
	top: 0;
	z-index: 100;
}

.app-bar-dashboard {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	position: sticky;
	top: 0;
	z-index: 1;
}

.app-title {
	font-size: var(--font-size-md);
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

/* KHUSUS dashboard */
#dashboard-screen .app-bar-dashboard {
	/*background: linear-gradient(135deg, #0fa88b, #1cc6a3);
	padding: 20px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	border-bottom-left-radius: 24px;
	border-bottom-right-radius: 24px;
	position: relative;
	overflow: hidden;*/
	
	background:
		url("background-header.png") no-repeat center calc(100% + 20px),
		linear-gradient(135deg, #0fa88b, #1cc6a3);
	background-size: cover;
	padding: 22px 20px 60px;
	border-bottom-left-radius: 24px;
	border-bottom-right-radius: 24px;
	position: relative;
	overflow: hidden;
}

/* background masjid */
#dashboard-screen .app-bar-dashboard::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url('assets/img/masjid-pattern.svg') no-repeat right bottom;
	background-size: contain;
	opacity: 0.25;
	pointer-events: none;
}

.dashboard-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	z-index: 1;
}

.dashboard-brand i {
	font-size: 15px;
}

.dashboard-actions {
	display: flex;
	gap: 12px;
	z-index: 1;
}
/*end Dashboard*/

.icon-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--secondary);
	font-size: var(--font-size-sm);
	transition: all 0.2s;
}

.icon-btn:hover {
	background-color: rgba(255, 255, 255, 0.3);
}

.notification-badge {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: var(--accent);
	color: white;
	font-size: var(--font-size-xs);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Content Area */
.content {
	padding: 20px;
	padding-bottom: 80px;
	position: relative;
}

/* Cards */
.card-custom {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	border: none;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	margin-bottom: 20px;
	overflow: hidden;
}

.card-custom:hover {
	box-shadow: var(--shadow-hover);
}

.card-header {
	background-color: transparent;
	border-bottom: 1px solid #f0f0f0;
	padding: 16px 20px;
	font-weight: 600;
	color: var(--text-primary);
	font-size: var(--font-size-md);
}

body.dark-mode .card-header {
	border-bottom-color: #444;
}

.card-body {
	padding: 20px;
}

/* Profile Card */
/*.profile-card {
	position: relative;
}

.profile-card:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(to right, var(--secondary), var(--primary));
	border-top-left-radius: var(--border-radius);
	border-top-right-radius: var(--border-radius);
}*/

/*.profile-name {
	font-size: var(--font-size-md);
	font-weight: 600;
	margin-bottom: 5px;
}*/

.profile-email {
	color: var(--text-white);
	font-size: var(--font-size-xs);
}

/*Profile dashboard*/
.profile-card {
	margin-top: -40px; /* naik ke header */
	background: var(--primary);
	border-radius: 16px;
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	position: relative;
	z-index: 2;
}

.profile-card .icon-btn {
	background: #0fa88b;
	color: #fff;
}

.profile-name {
	font-weight: 600;
	font-size: var(--font-size-md);
	margin-bottom: 5px;
}

/*Profile dashboard end*/

/* Student Cards */
.student-card {
	padding: 16px;
	margin-bottom: 15px;
}

.student-name {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: var(--font-size-sm);
}

.progress-container {
	margin-top: 10px;
}

.progress-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	font-size: var(--font-size-xs);
	color: var(--text-secondary);
}

.progress-bar-custom {
	height: 8px;
	border-radius: 4px;
	background-color: #f0f0f0;
	overflow: hidden;
}

body.dark-mode .progress-bar-custom {
	background-color: #444;
}

.progress-fill {
	height: 100%;
	background-color: var(--secondary);
	border-radius: 4px;
	transition: width 1s ease;
}

/* Information Slider */
.info-slider {
	display: flex;
	overflow-x: auto;
	padding: 10px 0;
	scrollbar-width: none;
}

.info-slider::-webkit-scrollbar {
	display: none;
}

.info-card {
	flex: 0 0 auto;
	width: 200px;
	margin-right: 15px;
	text-align: center;
	padding: 20px 15px;
	border-radius: var(--border-radius);
	background-color: var(--card-bg);
	box-shadow: var(--shadow);
}

.info-icon {
	width: 50px;
	height: 50px;
	background-color: rgba(244, 196, 48, 0.15);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 15px;
	color: var(--primary);
	font-size: var(--font-size-md);
}

.info-title {
	font-weight: 600;
	margin-bottom: 5px;
	font-size: var(--font-size-sm);
}

.info-subtitle {
	color: var(--text-secondary);
	font-size: var(--font-size-xs);
}

/* Billing Cards */
.billing-item {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
}

body.dark-mode .billing-item {
	border-bottom-color: #444;
}

.billing-item:last-child {
	border-bottom: none;
}

.billing-name {
	font-weight: 500;
	font-size: var(--font-size-sm);
}

.billing-amount {
	font-weight: 600;
	color: var(--secondary);
	font-size: var(--font-size-sm);
}

.status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: var(--font-size-xs);
	font-weight: 600;
}

.status-unpaid {
	background-color: rgba(139, 58, 46, 0.1);
	color: var(--accent);
}

body.dark-mode .status-unpaid {
	background-color: rgba(139, 58, 46, 0.3);
}

.status-paid {
	background-color: rgba(46, 125, 50, 0.1);
	color: var(--secondary);
}

body.dark-mode .status-paid {
	background-color: rgba(46, 125, 50, 0.3);
}

.status-pending {
	background-color: rgba(244, 196, 48, 0.15);
	color: #b38f00;
}

body.dark-mode .status-pending {
	background-color: rgba(244, 196, 48, 0.3);
}

/* Upload Area */
.upload-area {
	border: 2px dashed #ddd;
	border-radius: var(--border-radius);
	padding: 30px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background-color: #fcfcfc;
}

body.dark-mode .upload-area {
	background-color: #2D2D2D;
	border-color: #444;
}

.upload-area:hover {
	border-color: var(--secondary);
	background-color: rgba(46, 125, 50, 0.02);
}

.upload-icon {
	font-size: 40px;
	color: var(--text-secondary);
	margin-bottom: 15px;
}

.upload-text {
	color: var(--text-secondary);
	font-size: var(--font-size-sm);
}

.image-preview {
	width: 100%;
	object-fit: cover;
	border-radius: 12px;
	margin-top: 15px;
}

/* Payment Inputs */
.payment-input {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap:15px;
	margin-bottom: 15px;
}

.payment-label {
	flex:1;
	font-weight: 500;
	font-size: var(--font-size-sm);
}

.payment-amount-input {
	width: 120px !important;
	min-width:120px;
	border: 1px solid #ddd;
	border-radius: 8px !important;;
	padding: 8px 12px;
	text-align: right;
	font-weight: 600;
	color: var(--secondary);
	font-size: var(--font-size-sm);
	background-color: var(--card-bg);
}

body.dark-mode .payment-amount-input {
	background-color: #2D2D2D;
	border-color: #444;
}

.btn-secondary-custom {
	background-color: var(--secondary);
	color: white;
	border: none;
	border-radius: 50px;
	padding: 15px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	width: 100%;
}

.btn-secondary-custom:hover {
	background-color: #236027;
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

/* History Cards */
.history-card {
	padding: 18px;
	margin-bottom: 15px;
	border-left: 4px solid #198754;
}

.history-date {
	font-size: var(--font-size-xs);
	color: var(--text-secondary);
	margin-bottom: 5px;
}

.history-student {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: var(--font-size-sm);
}

.history-amount {
	font-weight: 700;
	font-size: var(--font-size-md);
	color: var(--secondary);
}

.history-progress {
    height: 8px;
    margin-top: 6px;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-top: 10px;
}

.history-card.completed {
    border-left-color: #198754;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d1e7dd;
    color: #0f5132;
}

.history-card {
    padding: 12px 14px;
    margin-bottom: 10px;
}

.history-student {
    font-size: 15px;
    font-weight: 600;
}

.history-amount {
    font-size: 18px;
    font-weight: 700;
    color: #198754;
}

.history-progress {
    height: 5px;
    margin-bottom: 0;
}

.status-badge {
    font-size: 11px;
    padding: 4px 8px;
}

.btn-mini {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.3;
    border-radius: 4px;
}

/* Profile Settings */
.font-size-slider {
	width: 100%;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: #e0e0e0;
	border-radius: 3px;
	outline: none;
}


body.dark-mode .font-size-slider {
	background: #444;
}

.font-size-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--primary);
	cursor: pointer;
	border: 2px solid white;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.font-preview {
	padding: 15px;
	background-color: #f9f9f9;
	border-radius: 12px;
	margin-top: 15px;
	border-left: 4px solid var(--primary);
	font-size: var(--font-size-sm);
}

body.dark-mode .font-preview {
	background-color: #2D2D2D;
}

.btn-logout {
	background-color: var(--accent);
	color: white;
	border: none;
	border-radius: 50px;
	padding: 14px;
	font-size: var(--font-size-sm);
	font-weight: 600;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	width: 100%;
	margin-top: 10px;
}

.btn-logout:hover {
	background-color: #7a3328;
	transform: translateY(-2px);
	box-shadow: var(--shadow-hover);
}

/* Bottom Navigation */
.bottom-nav {
	position: fixed;
	bottom: 0;
	width: 100%;
	max-width: 480px;
	background-color: white;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
	z-index: 100;
}

body.dark-mode .bottom-nav {
	background-color: #1E1E1E;
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: var(--text-secondary);
	font-size: var(--font-size-xs);
	transition: all 0.2s;
	padding: 8px 12px;
	border-radius: 12px;
}

.nav-item.active {
	color: var(--primary);
	background-color: rgba(244, 196, 48, 0.1);
}

.nav-icon {
	font-size: var(--font-size-md);
	margin-bottom: 4px;
}

.nav-item.active .nav-icon {
	color: var(--primary);
}

.nav-notification {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 8px;
	height: 8px;
	background-color: var(--accent);
	border-radius: 50%;
}

/* Highlight for Payment Confirmation */
.nav-item.highlight {
	color: var(--primary);
	font-weight: 600;
}

.nav-item.highlight .nav-icon {
	color: var(--primary);
}

.hidden {
	display: none !important;
}

/* Text elements dengan sistem proporsional */
h1, .h1 { font-size: var(--font-size-xl) !important; }
h2, .h2 { font-size: var(--font-size-lg) !important; }
h3, .h3 { font-size: var(--font-size-md) !important; }
h4, .h4 { font-size: var(--font-size-sm) !important; }
h5, .h5 { font-size: var(--font-size-sm) !important; }
h6, .h6 { font-size: var(--font-size-xs) !important; }

.fw-semibold {
	font-size: var(--font-size-sm) !important;
}

.text-secondary, .small {
	font-size: var(--font-size-xs) !important;
}

.fw-bold {
	font-size: var(--font-size-sm) !important;
}

.form-label {
	font-size: var(--font-size-sm) !important;
}

.form-check-label {
	font-size: var(--font-size-sm) !important;
}

/*data not found*/
.empty-state {
	display: flex;
	justify-content: center; /* tengah horizontal */
	align-items: center;     /* tengah vertical */
	height: 100%;
}

.empty-state img {
	max-width: 260px;
	opacity: 0.85;
}

/* Student selector multiple */
.student-selector[multiple] {
	padding: 10px;
	border: 2px solid #e0e0e0;
	border-radius: var(--border-radius);
	background-color: var(--card-bg);
	color: var(--text-primary);
}

body.dark-mode .student-selector[multiple] {
	border-color: #444;
	background-color: #2D2D2D;
}

.student-selector[multiple] option {
	padding: 8px 12px;
	border-radius: 8px;
	margin-bottom: 4px;
}

.student-selector[multiple] option:hover {
	background-color: rgba(244, 196, 48, 0.1);
}

.student-selector[multiple] option:checked {
	background-color: var(--primary);
	color: var(--text-primary);
	font-weight: 600;
}

/* Selected student tags */
.student-tag {
	background-color: rgba(244, 196, 48, 0.15);
	color: var(--text-primary);
	padding: 6px 12px;
	border-radius: 20px;
	font-size: var(--font-size-xs);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.student-tag-remove {
	background: none;
	border: none;
	color: var(--accent);
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.student-tag-remove:hover {
	background-color: rgba(139, 58, 46, 0.1);
}

/*Fancybox style*/
#image-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: .2s;

    z-index: 99999;
}

#image-preview-modal.show {
    opacity: 1;
    visibility: visible;
}

.image-preview-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

#preview-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    background: #fff;
}

.preview-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/*islamic motif*/
	.islamic-pattern {
		background:
			url("islamic-pattern-white.svg") repeat;
	}

/* Responsive adjustments */
@media (max-width: 480px) {
	.app-container {
		border-radius: 0;
	}
	
	.bottom-nav {
		border-radius: 0;
	}
}