/*
==============================================================
SHA Health Claim Intelligence Platform
Dashboard
==============================================================
*/
.dashboard-container {
	padding: 30px;
	background: #f5f7fb;
	min-height: 100vh;
}

/*=============================================================
 Header
=============================================================*/
.dashboard-title {
	font-size: 30px;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 5px;
}

.dashboard-subtitle {
	font-size: 15px;
	color: #6b7280;
}

/*=============================================================
 KPI Cards
=============================================================*/
.dashboard-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 24px;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid #edf2f7;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
	transition: .30s;
	overflow: hidden;
	height: 140px;
}

.dashboard-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 35px rgba(0, 0, 0, .10);
}

.dashboard-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 6px;
	height: 100%;
}

.dashboard-card.primary::before {
	background: #0d6efd;
}

.dashboard-card.success::before {
	background: #198754;
}

.dashboard-card.warning::before {
	background: #ffc107;
}

.dashboard-card.danger::before {
	background: #dc3545;
}

.dashboard-card.info::before {
	background: #6f42c1;
}

.dashboard-card.secondary::before {
	background: #20c997;
}

.dashboard-card-icon {
	width: 68px;
	height: 68px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #ffffff;
}

.dashboard-card.primary .dashboard-card-icon {
	background: #0d6efd;
}

.dashboard-card.success .dashboard-card-icon {
	background: #198754;
}

.dashboard-card.warning .dashboard-card-icon {
	background: #ffc107;
	color: #212529;
}

.dashboard-card.danger .dashboard-card-icon {
	background: #dc3545;
}

.dashboard-card.info .dashboard-card-icon {
	background: #6f42c1;
}

.dashboard-card.secondary .dashboard-card-icon {
	background: #20c997;
}

.dashboard-card-title {
	font-size: 14px;
	color: #6c757d;
	margin-bottom: 6px;
}

.dashboard-card-value {
	font-size: 34px;
	font-weight: 700;
	color: #1f2937;
	line-height: 1;
}

.dashboard-card-body small {
	color: #6c757d;
	font-size: 13px;
}

/*=============================================================
 Dashboard Panels
=============================================================*/
.dashboard-panel {
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid #e9ecef;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
	overflow: hidden;
	transition: .30s;
	height: 100%;
}

.dashboard-panel:hover {
	box-shadow: 0 15px 35px rgba(15, 23, 42, .10);
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 22px;
	border-bottom: 1px solid #edf2f7;
	background: #ffffff;
}

.panel-header h5 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: #1f2937;
}

.panel-header small {
	color: #6c757d;
}

.panel-body {
	padding: 22px;
}

/*=============================================================
 Tables
=============================================================*/
.dashboard-panel table {
	margin-bottom: 0;
}

.dashboard-panel table thead {
	background: #f8fafc;
}

.dashboard-panel table thead th {
	font-size: 13px;
	font-weight: 600;
	color: #495057;
	border-bottom: 1px solid #e9ecef;
	padding: 14px;
}

.dashboard-panel table tbody td {
	padding: 14px;
	vertical-align: middle;
	font-size: 14px;
}

.dashboard-panel table tbody tr {
	transition: .25s;
}

.dashboard-panel table tbody tr:hover {
	background: #f8fbff;
}

/*=============================================================
 Charts
=============================================================*/
#claimTrendChart{
    width:100% !important;
    height:340px !important;
}

#claimStatusChart{
    width:220px !important;
    height:220px !important;
    margin:auto;
    display:block;
    max-width:260px;
}

/*=============================================================
 Activities
=============================================================*/
.activity-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 16px 0;
	border-bottom: 1px solid #eef2f7;
}

.activity-item:last-child {
	border-bottom: none;
}

.activity-icon {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	background: #0d6efd;
	flex-shrink: 0;
}

.activity-content h6 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.activity-content p {
	margin: 3px 0;
	color: #6c757d;
	font-size: 13px;
}

.activity-time {
	font-size: 12px;
	color: #9ca3af;
}

/*=============================================================
 Quick Action Cards
=============================================================*/
.quick-action-card {
	display: block;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-radius: 16px;
	padding: 24px 20px;
	text-align: center;
	transition: .30s;
	height: 100%;
	color: #212529;
	box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.quick-action-card:hover {
	transform: translateY(-6px);
	text-decoration: none;
	color: #0d6efd;
	border-color: #0d6efd;
	box-shadow: 0 15px 35px rgba(13, 110, 253, .18);
}

.quick-action-card i {
	width: 70px;
	height: 70px;
	line-height: 70px;
	border-radius: 50%;
	background: #eef4ff;
	color: #0d6efd;
	font-size: 28px;
	margin-bottom: 18px;
}

.quick-action-card h6 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #1f2937;
}

.quick-action-card small {
	color: #6c757d;
	font-size: 13px;
	line-height: 20px;
}

/*=============================================================
 Status Badges
=============================================================*/
.status-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 600;
}

.status-approved {
	background: #d1fae5;
	color: #047857;
}

.status-pending {
	background: #fef3c7;
	color: #92400e;
}

.status-rejected {
	background: #fee2e2;
	color: #b91c1c;
}

.status-processing {
	background: #dbeafe;
	color: #1d4ed8;
}

/*=============================================================
 Notification Cards
=============================================================*/
.notification-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	padding: 16px;
	border-bottom: 1px solid #edf2f7;
	transition: .30s;
}

.notification-item:last-child {
	border-bottom: none;
}

.notification-item:hover {
	background: #f8fafc;
}

.notification-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	background: #dc3545;
	flex-shrink: 0;
}

.notification-content h6 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.notification-content p {
	margin: 5px 0;
	color: #6c757d;
	font-size: 13px;
}

.notification-time {
	font-size: 12px;
	color: #9ca3af;
}

/*=============================================================
 Buttons
=============================================================*/
.btn-primary {
	border-radius: 10px;
	padding: 10px 20px;
	font-weight: 600;
}

.btn-outline-primary {
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
}

/*=============================================================
 Scroll Containers
=============================================================*/
#recentActivities, #aiNotifications {
	max-height: 380px;
	overflow-y: auto;
}

#recentActivities::-webkit-scrollbar, #aiNotifications::-webkit-scrollbar
	{
	width: 6px;
}

#recentActivities::-webkit-scrollbar-thumb, #aiNotifications::-webkit-scrollbar-thumb
	{
	background: #ced4da;
	border-radius: 20px;
}

/*=============================================================
 Responsive
=============================================================*/
@media ( max-width :1400px) {
	.dashboard-card {
		min-height: 130px;
	}
	.dashboard-card-value {
		font-size: 30px;
	}
}

@media ( max-width :1200px) {
	.dashboard-title {
		font-size: 26px;
	}
	.dashboard-card {
		padding: 20px;
	}
	.dashboard-card-icon {
		width: 60px;
		height: 60px;
		font-size: 24px;
	}
}

@media ( max-width :992px) {
	.dashboard-container {
		padding: 20px;
	}
	.dashboard-header {
		text-align: center;
		margin-bottom: 20px;
	}
	.dashboard-card {
		min-height: 120px;
	}
	.panel-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	.panel-header .btn, .panel-header select {
		width: 100%;
	}
}

@media ( max-width :768px) {
	.dashboard-container {
		padding: 15px;
	}
	.dashboard-title {
		font-size: 22px;
	}
	.dashboard-subtitle {
		font-size: 14px;
	}
	.dashboard-card {
		flex-direction: column;
		text-align: center;
		padding: 20px;
		min-height: auto;
	}
	.dashboard-card-icon {
		margin-bottom: 12px;
	}
	.dashboard-card-value {
		font-size: 28px;
	}
	.quick-action-card {
		padding: 18px;
	}
	.quick-action-card i {
		width: 60px;
		height: 60px;
		line-height: 60px;
		font-size: 24px;
	}
	#claimTrendChart {
		min-height: 260px;
	}
	#claimStatusChart {
		max-width: 220px;
	}
}

@media ( max-width :576px) {
	.dashboard-container {
		padding: 12px;
	}
	.dashboard-title {
		font-size: 20px;
	}
	.dashboard-card {
		border-radius: 14px;
	}
	.dashboard-panel {
		border-radius: 14px;
	}
	.panel-header {
		padding: 15px;
	}
	.panel-body {
		padding: 15px;
	}
	.dashboard-panel table {
		font-size: 13px;
	}
	.dashboard-panel table th, .dashboard-panel table td {
		white-space: nowrap;
	}
}

/*=============================================================
 Animation
=============================================================*/
.dashboard-card, .dashboard-panel, .quick-action-card {
	animation: fadeInUp .45s ease;
}

@
keyframes fadeInUp {from { opacity:0;
	transform: translateY(15px);
}

to {
	opacity: 1;
	transform: translateY(0);
}

}

/*=============================================================
 Utilities
=============================================================*/
.text-purple {
	color: #6f42c1;
}

.bg-purple {
	background: #6f42c1;
}

.border-radius-12 {
	border-radius: 12px;
}

.shadow-soft {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.cursor-pointer {
	cursor: pointer;
}

/*=============================================================
 Dashboard Freeze v1.0
=============================================================*/