/* Common Styles */
body {
	font-family: 'Poppins', sans-serif;
	background-color: #f8f9fa;
	color: #333;
}

/* Bootstrap Overrides */
.btn {
	border-radius: 5px;
	font-weight: 500;
	padding: 0.5rem 1.5rem;
	transition: all 0.2s ease-in-out;
}

.btn-primary {
	background-color: #4e73df;
	border-color: #4e73df;
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: #2e59d9;
	border-color: #2653d4;
	box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.btn-success {
	background-color: #1cc88a;
	border-color: #1cc88a;
}

.btn-success:hover,
.btn-success:focus {
	background-color: #17a673;
	border-color: #169b6b;
}

.btn-info {
	background-color: #36b9cc;
	border-color: #36b9cc;
}

.btn-info:hover,
.btn-info:focus {
	background-color: #2c9faf;
	border-color: #2a96a5;
}

.btn-warning {
	background-color: #f6c23e;
	border-color: #f6c23e;
	color: #333;
}

.btn-warning:hover,
.btn-warning:focus {
	background-color: #f4b619;
	border-color: #f4b30d;
	color: #333;
}

.btn-danger {
	background-color: #e74a3b;
	border-color: #e74a3b;
}

.btn-danger:hover,
.btn-danger:focus {
	background-color: #e02d1b;
	border-color: #d52a1a;
}

.bg-primary {
	background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
}

.text-primary {
	color: #4e73df !important;
}

.alert {
	border-radius: 5px;
	border-left: 5px solid;
}

.alert-success {
	border-left-color: #1cc88a;
}

.alert-info {
	border-left-color: #36b9cc;
}

.alert-warning {
	border-left-color: #f6c23e;
}

.alert-danger {
	border-left-color: #e74a3b;
}

.card {
	border: none;
	border-radius: 8px;
	box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
	transition: all 0.3s ease;
}

.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
	background-color: #f8f9fc;
	border-bottom: 1px solid #e3e6f0;
	font-weight: 700;
}

.table th {
	background-color: #f8f9fc;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.03em;
}

.form-control:focus {
	border-color: #bac8f3;
	box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.navbar-brand {
	font-size: 1.2rem;
	font-weight: 700;
}

.dropdown-menu {
	border: 0;
	box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.2);
	border-radius: 0.35rem;
}

.dropdown-item.active,
.dropdown-item:active {
	background-color: #4e73df;
}

.dropdown-header {
	color: #4e73df;
	font-weight: 600;
}

.page-header {
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #e3e6f0;
	padding-bottom: 1rem;
}

/* Login Styles */
.login-container {
	max-width: 450px;
	margin: 80px auto;
	padding: 2rem;
	background: white;
	border-radius: 10px;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.login-logo {
	text-align: center;
	margin-bottom: 2rem;
}

.login-logo i {
	font-size: 3.5rem;
	background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
	-webkit-text-fill-color: transparent;
	display: inline-block;
}

/* Dashboard Styles */
.dashboard-stats {
	margin-bottom: 2rem;
}

.stat-card {
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
	margin-bottom: 1.5rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.stat-card h3 {
	margin-top: 0;
	color: #5a5c69;
	font-size: 0.9rem;
	font-weight: 600;
	text-transform: uppercase;
}

.stat-card .number {
	font-size: 2.5rem;
	font-weight: 700;
	color: #4e73df;
	margin-bottom: 0.5rem;
}

.stat-card .icon {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 2rem;
	opacity: 0.3;
}

/* Status badges */
.badge {
	padding: 5px 8px;
	font-weight: 500;
	border-radius: 30px;
	font-size: 11px;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-success {
	background: linear-gradient(45deg, #1cc88a, #20c997);
}

.badge-danger {
	background: linear-gradient(45deg, #e74a3b, #dc3545);
}

.badge-warning {
	background-color: #f6c23e;
	color: #000;
}

.badge-orange {
	background-color: #fd7e14;
	color: #fff;
}

.badge-info {
	background: linear-gradient(45deg, #36b9cc, #17a2b8);
}

/* Upload Form */
.dragdrop-area {
	border: 2px dashed #bac8f3;
	padding: 2rem;
	text-align: center;
	margin-bottom: 1.5rem;
	border-radius: 8px;
	background-color: #f8f9fc;
	transition: all 0.3s ease;
}

.dragdrop-area.highlight {
	border-color: #4e73df;
	background-color: #eaeffd;
}

.dragdrop-area i {
	font-size: 3rem;
	color: #4e73df;
	margin-bottom: 1rem;
	opacity: 0.7;
}

.dragdrop-area p {
	margin: 0;
	color: #5a5c69;
	font-weight: 500;
}

/* DataTable custom styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
	margin-bottom: 1rem;
	color: #5a5c69;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: linear-gradient(to bottom, #4e73df, #3a64d8);
	color: white !important;
	border-color: #3a64d8;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: #eaecf4;
	border-color: #eaecf4;
	color: #4e73df !important;
}

.dataTables_wrapper .dataTables_filter input {
	border: 1px solid #d1d3e2;
	border-radius: 4px;
	padding: 6px 12px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	transition: all 0.2s;
}

.dataTables_wrapper .dataTables_filter input:focus {
	border-color: #4e73df;
	box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Footer */
.footer {
	font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.login-container {
		margin: 40px auto;
		padding: 1.5rem;
	}

	.stat-card .number {
		font-size: 2rem;
	}

	.stat-card .icon {
		font-size: 1.5rem;
	}

	.card {
		margin-bottom: 1rem;
	}
}

/* Animations */
.fade-in {
	animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Navbar gradient đẹp hơn */
.navbar {
	background: linear-gradient(120deg, #4e73df, #224abe) !important;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Hiệu ứng card thống kê */
.stat-card {
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s;
	border: none;
	overflow: hidden;
}

.stat-card:hover {
	transform: translateY(-7px);
	box-shadow: 0 7px 25px rgba(0, 0, 0, 0.1);
}

/* Card thống kê với gradient background */
.stat-card.primary-card {
	background: linear-gradient(45deg, rgba(78, 115, 223, 0.05), rgba(78, 115, 223, 0.1));
}

.stat-card.warning-card {
	background: linear-gradient(45deg, rgba(246, 194, 62, 0.05), rgba(246, 194, 62, 0.1));
}

.stat-card.danger-card {
	background: linear-gradient(45deg, rgba(231, 74, 59, 0.05), rgba(231, 74, 59, 0.1));
}

.stat-card.success-card {
	background: linear-gradient(45deg, rgba(28, 200, 138, 0.05), rgba(28, 200, 138, 0.1));
}

/* Empty state đẹp hơn */
.empty-state {
	padding: 40px 0;
	text-align: center;
}

.empty-state i {
	font-size: 70px;
	color: rgba(78, 115, 223, 0.2);
	margin-bottom: 20px;
}

.empty-state p {
	color: #6c757d;
	font-size: 16px;
	margin-bottom: 20px;
}

/* Button với hiệu ứng */
.btn {
	border-radius: 6px;
	padding: 8px 20px;
	font-weight: 500;
	transition: all 0.2s;
	position: relative;
	overflow: hidden;
}

.btn:after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: rgba(255, 255, 255, 0.5);
	opacity: 0;
	border-radius: 100%;
	transform: scale(1, 1) translate(-50%);
	transform-origin: 50% 50%;
}

.btn:hover:after {
	animation: ripple 1s ease-out;
}

@keyframes ripple {
	0% {
		transform: scale(0, 0);
		opacity: 0.5;
	}

	100% {
		transform: scale(20, 20);
		opacity: 0;
	}
}

/* Notification Styles */
.notification-dropdown {
	position: relative;
}

.notification-badge {
	position: absolute;
	top: 0;
	right: 0;
	font-size: 10px;
	padding: 2px 5px;
	border-radius: 50%;
	transform: translate(25%, -25%);
}

.notification-dropdown-menu {
	width: 320px;
	padding: 0;
	border: none;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

.notification-dropdown-menu .dropdown-header {
	background: linear-gradient(45deg, #4e73df, #224abe);
	color: #fff;
	padding: 15px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-list {
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #e0e0e0 #f8f8f8;
}

.notification-list::-webkit-scrollbar {
	width: 6px;
}

.notification-list::-webkit-scrollbar-track {
	background: #f8f8f8;
}

.notification-list::-webkit-scrollbar-thumb {
	background-color: #e0e0e0;
	border-radius: 6px;
}

.notification-item {
	padding: 12px 15px;
	border-bottom: 1px solid #f1f1f1;
	position: relative;
	transition: all 0.2s;
}

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

.notification-item:hover {
	background-color: #f8f9fc;
}

.notification-item.unread {
	background-color: rgba(78, 115, 223, 0.05);
}

.notification-item.unread:before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #4e73df;
}

.notification-content {
	position: relative;
	padding-left: 45px;
}

.notification-icon {
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e8eaef;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #fff;
}

.notification-icon.bg-primary {
	background: linear-gradient(45deg, #4e73df, #224abe);
}

.notification-icon.bg-success {
	background: linear-gradient(45deg, #1cc88a, #13855c);
}

.notification-icon.bg-warning {
	background: linear-gradient(45deg, #f6c23e, #dda20a);
}

.notification-icon.bg-danger {
	background: linear-gradient(45deg, #e74a3b, #be2617);
}

.notification-icon.bg-info {
	background: linear-gradient(45deg, #36b9cc, #258391);
}

.notification-title {
	font-weight: 600;
	margin-bottom: 3px;
	font-size: 13px;
	color: #333;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.notification-message {
	font-size: 12px;
	color: #777;
	margin-bottom: 3px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.notification-time {
	font-size: 11px;
	color: #999;
	margin-top: 4px;
}

.dropdown-menu-footer {
	background: #f8f9fc;
	border-top: 1px solid #eaecf4;
	padding: 10px;
	display: flex;
	justify-content: space-between;
}

.dropdown-menu-footer a {
	font-size: 12px;
	color: #4e73df;
	display: flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 5px;
	transition: all 0.2s;
	text-decoration: none;
}

.dropdown-menu-footer a:hover {
	background: rgba(78, 115, 223, 0.1);
	color: #224abe;
}

.dropdown-menu-footer a i {
	margin-right: 5px;
}

.no-notifications {
	padding: 25px 15px;
	text-align: center;
}

.no-notifications i {
	font-size: 24px;
	margin-bottom: 10px;
	display: block;
}

.no-notifications p {
	color: #888;
	margin: 0;
	font-size: 13px;
}

/* Card View Styles */
.affiliate-card {
	transition: all 0.2s ease;
	border: none;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.affiliate-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.affiliate-card .card-header {
	border-bottom: none;
	padding: 15px;
	position: relative;
}

.affiliate-card .card-body {
	padding: 15px;
}

.affiliate-card .card-footer {
	background-color: #f8f9fa;
	border-top: none;
	font-size: 12px;
}

.affiliate-card.status-invite {
	border-left: 4px solid #f6c23e;
}

.affiliate-card.status-requested {
	border-left: 4px solid #36b9cc;
}

.affiliate-card.status-reject {
	border-left: 4px solid #e74a3b;
}

.affiliate-card.status-live {
	border-left: 4px solid #1cc88a;
}

.view-options .btn-group {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-options .btn-group .btn {
	border-radius: 0;
}

.view-options .btn-group .btn:first-child {
	border-top-left-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
}

.view-options .btn-group .btn:last-child {
	border-top-right-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
}

.view-options .btn-group .btn.active {
	background-color: #4e73df;
	color: white;
}

/* Chart Container Styles */
.chart-container {
	position: relative;
	margin: auto;
	height: 300px;
}

/* Activity Timeline Styles */
.activity-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}

.activity-timeline:before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 10px;
	width: 2px;
	background: #e9ecef;
}

.activity-item {
	position: relative;
	padding-left: 30px;
	padding-bottom: 15px;
}

.activity-item:last-child {
	padding-bottom: 0;
}

.activity-dot {
	position: absolute;
	left: 0;
	top: 5px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.activity-content {
	padding: 5px 0;
}

.fw-bold {
	font-weight: 600;
}

/* Cải thiện bảng dữ liệu */
.table thead th {
	background: linear-gradient(to bottom, #4e73df, #3a64d8);
	color: #fff;
	border-color: #3a64d8;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	vertical-align: middle;
	padding: 12px 15px;
	border-bottom: none;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.table thead th:first-child {
	border-top-left-radius: 6px;
	border-bottom-left-radius: 6px;
}

.table thead th:last-child {
	border-top-right-radius: 6px;
	border-bottom-right-radius: 6px;
}

.table tbody tr {
	transition: all 0.2s ease-in-out;
}

.table tbody tr:hover {
	background-color: rgba(78, 115, 223, 0.05);
	transform: translateY(-2px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table tbody td {
	padding: 12px 15px;
	vertical-align: middle;
	border-top: 1px solid #e3e6f0;
}

/* Nút action */
.table .btn-sm {
	padding: 4px 8px;
	font-size: 12px;
	border-radius: 4px;
	margin-right: 5px;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s;
}

.table .btn-sm:last-child {
	margin-right: 0;
}

.table .btn-sm:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.table .btn-sm i {
	font-size: 11px;
}

.table .btn-primary {
	background: linear-gradient(45deg, #4e73df, #6610f2);
}

.table .btn-warning {
	background: linear-gradient(45deg, #f6c23e, #fd7e14);
}

.table .btn-danger {
	background: linear-gradient(45deg, #e74a3b, #dc3545);
}

/* Custom checkboxes */
.custom-control-input:checked~.custom-control-label::before {
	background-color: #4e73df;
	border-color: #4e73df;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

.custom-control-label::before {
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border: 1px solid #d1d3e2;
}

/* Actions column styling */
.actions-column {
	white-space: nowrap;
	width: 1%;
	text-align: right;
}

.action-buttons {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.action-buttons .btn {
	opacity: 0.85;
	transform: scale(0.9);
	margin-left: 4px;
}

.action-buttons .btn:hover {
	opacity: 1;
	transform: scale(1);
}

/* Status columns */
.status-badge-cell {
	text-align: center;
}

/* Icon circle cho note */
.icon-circle {
	height: 3rem;
	width: 3rem;
	border-radius: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

/* Hiệu ứng hover cho user-with-note */
.user-with-note {
	position: relative;
	cursor: help;
	border-bottom: 1px dotted #007bff;
}

.user-with-note i {
	font-size: 0.85em;
	opacity: 0.8;
}

/* Tạo card ghi chú đẹp mắt */
.card.border-left-primary {
	border-left: 0.25rem solid #4e73df !important;
	transition: all 0.3s ease;
}

.card.border-left-primary:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Note box styling */
.note-box {
	transition: all 0.3s ease;
	overflow: hidden;
}

.note-box:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
	transform: translateY(-2px);
}

.notification-icon-container {
	padding: 1.5rem 0;
}

.note-content {
	border-radius: 4px;
	position: relative;
}

.note-badge {
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.35em 0.65em;
}

.note-text {
	line-height: 1.6;
	color: #5a5c69;
	font-size: 0.9rem;
	border-left: 3px solid #36b9cc;
}

.card.border-left-info {
	border-left: 0.25rem solid #36b9cc !important;
}

/* Animation for note box */
@keyframes pulseInfo {
	0% {
		box-shadow: 0 0 0 0 rgba(54, 185, 204, 0.7);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(54, 185, 204, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(54, 185, 204, 0);
	}
}