* { font-family: 'Inter', sans-serif; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes expandDown {
	from { opacity: 0; transform: translateY(-10px); max-height: 0; }
	to { opacity: 1; transform: translateY(0); max-height: 500px; }
}
.animate-slide-in { animation: slideIn 0.3s ease-out forwards; }
.animate-fade-scale { animation: fadeScale 0.25s ease-out forwards; }
.expandable-content {
	max-height: 0;
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.expandable-content.open {
	max-height: 500px;
	margin-top: 1rem;
	padding-top: 1rem;
}
.doc-card {
	transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}
.doc-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}
/* Highlight effect for cards with sections */
.doc-card.highlight {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
	color: white !important;
	box-shadow: 0 20px 30px -12px rgba(99, 102, 241, 0.4);
}
.doc-card.highlight .w-8.h-8.rounded-xl {
	background: rgba(255, 255, 255, 0.2) !important;
}
.doc-card.highlight .text-indigo-600 {
	color: white !important;
}
.doc-card.highlight .bg-indigo-50 {
	background: rgba(255, 255, 255, 0.2) !important;
}
.doc-card.highlight .bg-slate-100 {
	background: rgba(255, 255, 255, 0.15) !important;
}
.doc-card.highlight .text-slate-700,
.doc-card.highlight .text-slate-800,
.doc-card.highlight .text-slate-500,
.doc-card.highlight .text-slate-400 {
	color: white !important;
}
.doc-card.highlight .border-slate-100 {
	border-color: rgba(255, 255, 255, 0.2) !important;
}
.doc-card.highlight .bg-red-50 {
	background: rgba(255, 255, 255, 0.2) !important;
	color: white !important;
	border-color: rgba(255, 255, 255, 0.3) !important;
}
.doc-card.highlight .text-red-600 {
	color: white !important;
}
.doc-card.highlight .section-item {
	background: rgba(255, 255, 255, 0.1) !important;
	color: white !important;
}
.doc-card.highlight .section-item:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}
.doc-card.highlight .text-indigo-500 {
	color: #c7d2fe !important;
}
.doc-card.highlight .text-slate-700 {
	color: #f3f4f6 !important;
}
/* Dark mode highlight overrides */
body.dark-theme .doc-card.highlight {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
}
.nav-pill { transition: all 0.2s ease; }
.nav-pill-active { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25); }
.tab-active { color: #4f46e5; border-bottom-color: #4f46e5; }
.btn-icon { transition: all 0.15s ease; }
.btn-icon:hover { transform: scale(1.05); }
.section-item { transition: all 0.15s ease; }
.section-item:hover { transform: translateX(4px); background: #f8fafc; }
.trimester-section {
	background: rgba(255, 255, 255, 0.5);
	border-radius: 1rem;
	padding: 1rem;
	transition: all 0.2s ease;
}
.trimester-section:hover {
	background: rgba(255, 255, 255, 0.7);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.trimester-header {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-left: 4px solid #10b981;
}
body.dark-theme .trimester-section {
	background: rgba(0, 0, 0, 0.3);
}
body.dark-theme .trimester-section:hover {
	background: rgba(0, 0, 0, 0.4);
}
body.dark-theme .trimester-header {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
	border-left-color: #10b981;
}
body.dark-theme .trimester-header h3 {
	color: #6ee7b7 !important;
}
/* Global dark theme styles */
body.dark-theme {
	background: linear-gradient(135deg, #0f172a 0%, #111827 100%) !important;
	color: #e5e7eb;
}
body.dark-theme .max-w-7xl {
	background: rgba(15, 23, 42, 0.78) !important;
	border-color: rgba(148, 163, 184, 0.2) !important;
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55) !important;
}
body.dark-theme .doc-card {
	background: rgba(30, 41, 59, 0.92) !important;
	border-color: rgba(148, 163, 184, 0.2) !important;
	box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.55);
}
body.dark-theme .doc-card:hover {
	box-shadow: 0 22px 36px -18px rgba(0, 0, 0, 0.7) !important;
}
body.dark-theme .doc-card h4,
body.dark-theme .doc-card p,
body.dark-theme .doc-card .text-slate-800,
body.dark-theme .doc-card .text-slate-700,
body.dark-theme .doc-card .text-slate-600,
body.dark-theme .doc-card .text-slate-500,
body.dark-theme .doc-card .text-slate-400,
body.dark-theme .text-slate-500,
body.dark-theme .text-slate-400 {
	color: #cbd5e1 !important;
}
body.dark-theme .section-item {
	background: rgba(15, 23, 42, 0.55) !important;
}
body.dark-theme .section-item:hover {
	background: rgba(79, 70, 229, 0.2) !important;
}
body.dark-theme .border-slate-100 {
	border-color: rgba(148, 163, 184, 0.16) !important;
}
body.dark-theme .bg-white,
body.dark-theme .bg-white\/70 {
	background: rgba(30, 41, 59, 0.92) !important;
}
body.dark-theme .bg-slate-50,
body.dark-theme .bg-slate-50\/50,
body.dark-theme .bg-slate-100 {
	background: rgba(15, 23, 42, 0.55) !important;
}
body.dark-theme .text-indigo-600 {
	color: #a5b4fc !important;
}
body.dark-theme .tab-item {
	color: #94a3b8 !important;
}
body.dark-theme .tab-item.tab-active {
	color: #a5b4fc !important;
	border-bottom-color: #818cf8 !important;
}
body.dark-theme .nav-pill {
	background: rgba(30, 41, 59, 0.9) !important;
	border-color: rgba(148, 163, 184, 0.25) !important;
	color: #cbd5e1 !important;
}
body.dark-theme .nav-pill.nav-pill-active {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
	color: #ffffff !important;
	border-color: transparent !important;
}
body.dark-theme #theme-toggle {
	background: rgba(30, 41, 59, 0.9) !important;
	border-color: rgba(148, 163, 184, 0.28) !important;
	color: #e2e8f0 !important;
}
