/* ==========================================================
    Employee Management
========================================================== */

:root {
	--primary: #0d6efd;
	--success: #198754;
	--danger: #dc3545;
	--warning: #ffc107;

	--background: #f5f7fb;
	--white: #ffffff;
	--text: #343a40;
	--muted: #6c757d;
	--border: #dee2e6;

	--radius: 14px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ==========================================================
    GLOBAL
========================================================== */

body {
	background: var(--background);
	font-family: "Poppins", sans-serif;
	color: var(--text);
}

h2 {
	font-weight: 700;
}

.text-muted {
	font-size: 0.95rem;
}

/* ==========================================================
    CARD
========================================================== */

.card {
	border: none;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card-body {
	padding: 25px;
}

/* ==========================================================
    BUTTON
========================================================== */

.btn {
	border-radius: 10px;
	font-weight: 500;
	padding: 10px 18px;
}

.btn i {
	margin-right: 6px;
}

/* ==========================================================
    TABLE
========================================================== */

table.dataTable {
	margin-top: 0 !important;
}

.table {
	margin-bottom: 0;
}

.table thead th {
	background: #f8f9fa;
	font-weight: 600;
	vertical-align: middle;
	white-space: nowrap;
}

.table tbody td {
	vertical-align: middle;
}

/* ==========================================================
    PHOTO
========================================================== */

.employee-photo {
	width: 45px;
	height: 45px;

	border-radius: 50%;
	object-fit: cover;

	border: 2px solid #fff;

	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.photo-placeholder {
	width: 45px;
	height: 45px;

	border-radius: 50%;

	background: #e9ecef;

	display: flex;
	justify-content: center;
	align-items: center;

	color: #adb5bd;
	font-size: 18px;
}

/* ==========================================================
    ACTION BUTTON
========================================================== */

.btn-action {
	width: 35px;
	height: 35px;

	display: inline-flex;
	justify-content: center;
	align-items: center;

	border-radius: 8px;

	margin-right: 5px;

	color: #fff;
	text-decoration: none;

	transition: 0.2s;
}

.btn-edit {
	background: #0d6efd;
}
.btn-delete {
	background: #dc3545;
}
.btn-qr {
	background: #198754;
}
.btn-download {
	background: #6c757d;
}

.btn-action:hover {
	opacity: 0.9;
	color: #fff;
}

/* ==========================================================
    MODAL
========================================================== */

.modal-content {
	border: none;
	border-radius: 18px;
	box-shadow: var(--shadow);
}

.modal-header {
	padding: 18px 24px;
	border-bottom: 1px solid var(--border);
}

.modal-title {
	font-weight: 600;
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	padding: 18px 24px;
	border-top: 1px solid var(--border);
}

/* ==========================================================
    EMPLOYEE MODAL
========================================================== */

#modalEmployee .modal-dialog {
	max-width: 900px;
}

#modalEmployee .modal-body {
	max-height: 70vh;

	overflow-y: auto;
}

/* ==========================================================
    IMAGE PREVIEW
========================================================== */

#previewPhoto {
	width: 120px;
	height: 120px;

	display: block;
	margin: 15px auto;

	object-fit: cover;

	border-radius: 50%;

	border: 1px solid var(--border);
}

#previewBusinessCard {
	display: block;

	width: 100%;
	max-width: 420px;
	height: 210px;

	margin: 15px auto;

	object-fit: contain;

	border: 1px solid var(--border);

	border-radius: 10px;

	background: #fff;
}

/* ==========================================================
    FORM
========================================================== */

.form-label {
	font-weight: 500;
	margin-bottom: 8px;
}

.form-control {
	border-radius: 10px;
	min-height: 45px;
}

.form-control:focus {
	border-color: var(--primary);
	box-shadow: none;
}

textarea.form-control {
	min-height: 110px;
}

/* ==========================================================
    DATATABLE
========================================================== */

.dataTables_wrapper .dataTables_filter input {
	border-radius: 10px;
	border: 1px solid #ced4da;

	padding: 6px 10px;
}

.dataTables_wrapper .dataTables_length select {
	border-radius: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
	border-radius: 8px !important;
}

/* ==========================================================
    RESPONSIVE
========================================================== */

@media (max-width: 768px) {
	.card-body {
		padding: 18px;
	}

	.btn {
		width: 100%;
		margin-bottom: 10px;
	}

	.text-md-end {
		text-align: left !important;
	}

	#modalEmployee .modal-dialog {
		margin: 0.75rem;
	}

	#modalEmployee .modal-body {
		max-height: 65vh;
	}

	#previewPhoto {
		width: 100px;
		height: 100px;
	}

	#previewBusinessCard {
		max-width: 100%;
		height: auto;
	}
}
