:root {
	--accent-blue: #6366f1;
	--accent-cyan: #22d3ee;
	--accent-purple: #a855f7;
	--accent-green: #10b981;
	--accent-red: #ef4444;
	--accent-orange: #f59e0b;
	--card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.new-widget-card {
	margin-bottom: 30px;
	overflow: hidden;
}

.new-widget-card:hover {
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.card-header-premium {
	background: transparent;
	padding: 17px 20px 10px;
	border: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-title-container {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header-icon-box {
	width: 42px;
	height: 42px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #fff;
}

.header-title-text h5 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #1e293b;
}

.header-title-text p {
	margin: 0;
	font-size: 12px;
	color: #94a3b8;
}

/* Doctor Availability Status (Card Grid) */
.doc-status-grid-item {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	border: 1px solid #f1f5f9;
	transition: all 0.3s ease;
}

.doc-status-grid-item:hover {
	border-color: var(--accent-blue);
	background: #f8fafc;
}

.doc-status-icon-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.doc-status-icon-box {
	width: 48px;
	height: 48px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.status-count {
	font-size: 32px;
	font-weight: 800;
	color: #1e293b;
	margin: 5px 0 0;
}

.status-label {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
}

/* Recent Emergency Cases (Table) */
.premium-table {
	margin: 0;
}

.premium-table thead th {
	background: #f8fafc;
	border: none;
	padding: 18px 25px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	font-weight: 700;
}

.premium-table tbody td {
	padding: 20px 25px;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
	color: #334155;
}

.premium-table tbody tr:last-child td {
	border-bottom: none;
}

.patient-cell {
	display: flex;
	align-items: center;
	gap: 12px;
}

.patient-avatar {
	width: 30px;
	height: 30px;
	border-radius: 30px;
	object-fit: cover;
}

.status-badge-soft {
	padding: 6px 14px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

/* Upcoming Surgeries (Timeline) */
.premium-timeline {
	display: flex;
	flex-direction: column;
	gap: 25px;
	padding: 10px 0;
}

.timeline-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.timeline-time-col {
	flex: 0 0 70px;
	text-align: right;
}

.time-text {
	font-size: 14px;
	font-weight: 700;
	color: #1e293b;
}

.time-ampm {
	font-size: 11px;
	color: #94a3b8;
	text-transform: uppercase;
}

.timeline-content-col {
	position: relative;
	padding-inline-start: 25px;
	border-inline-start: 2px dashed #e2e8f0;
	flex: 1;
}

.timeline-content-col::before {
	content: "";
	position: absolute;
	inset-inline-start: -6px;
	top: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent-blue);
	border: 2px solid #fff;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.surgery-title {
	font-size: 15px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 4px;
}

.surgery-meta {
	font-size: 13px;
	color: #64748b;
}

.surgery-meta b {
	color: var(--accent-blue);
}

/* Growth Stats Cards */
.growth-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.growth-stats-container {
	display: flex;
	justify-content: space-between;
	padding: 0 30px 10px;
	margin-top: 10px;
	flex-wrap: wrap;
	gap: 10px;
}

.growth-stat-item {
	display: flex;
	flex-direction: column;
}

.growth-stat-label {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 600;
	margin-bottom: 4px;
}

.growth-stat-value {
	font-size: 18px;
	font-weight: 800;
	color: #1e293b;
}

.growth-chart-wrapper {
	padding: 0 15px 20px;
	flex: 1;
	display: flex;
	align-items: flex-end;
}

.trend-indicator {
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.trend-up {
	background: rgba(16, 185, 129, 0.1);
	color: var(--accent-green);
}

.trend-down {
	background: rgba(239, 68, 68, 0.1);
	color: var(--accent-red);
}

/* Dark Theme for Growth Cards */
.dark-theme .growth-stat-value {
	color: #f8fafc;
}

.dark-theme .growth-stat-label {
	color: #94a3b8;
}

/* Background Gradients */
.bg-grad-blue {
	background: #6e6ed0;
}

.bg-grad-cyan {
	background: linear-gradient(135deg, #22d3ee 0%, #00f2fe 100%);
}

.bg-grad-purple {
	background: #7931c3;
}

.bg-grad-green {
	background: #059669;
}

.bg-grad-red {
	background: #fc3030;
}

.bg-grad-orange {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.badge-critical {
	background: rgba(239, 68, 68, 0.1);
	color: var(--accent-red);
}

.badge-stable {
	background: rgba(16, 185, 129, 0.1);
	color: var(--accent-green);
}

.badge-treated {
	background: rgba(99, 102, 241, 0.1);
	color: var(--accent-blue);
}

/* Dark Theme Adjustments */
.dark-theme .card,
.dark-theme .card-box,
.dark-theme .new-widget-card {
	background: #1f2937 !important;
	border: 1px solid #374151 !important;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
}

.dark-theme .card-head,
.dark-theme .card-header-premium {
    background: #1f2937 !important;
    border-bottom: 1px solid #374151 !important;
}

.dark-theme .header-title-text h5,
.dark-theme .card-head header,
.dark-theme .status-count,
.dark-theme .time-text,
.dark-theme .surgery-title {
	color: #f8fafc !important;
}

.dark-theme .doc-status-grid-item {
	background: #111827;
	border-color: #374151;
}

.dark-theme .premium-table tbody td {
	color: #cbd5e1;
	border-bottom-color: #374151;
}

.dark-theme .premium-table thead th {
    background: #111827;
    color: #94a3b8;
}

.dark-theme .timeline-content-col {
    border-inline-start-color: #374151;
}

.dark-theme .time-ampm,
.dark-theme .surgery-meta {
    color: #94a3b8;
}
