/**
 * Flowbite UI Design System for MCU Documents Frontend
 */

.mcu-doc-group-container {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
	margin: 28px 0;
	overflow: hidden;
	font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

/* Header Jumbotron */
.mcu-doc-header {
	background: linear-gradient(135deg, #1e40af 0%, #0284c7 100%);
	color: #ffffff;
	padding: 24px 28px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.mcu-doc-header-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
}

.mcu-doc-header-info {
	flex: 1;
	min-width: 0;
}

.mcu-doc-title {
	margin: 0 0 4px 0 !important;
	color: #ffffff !important;
	font-size: 19px !important;
	font-weight: 800 !important;
	line-height: 1.35 !important;
}

.mcu-doc-desc {
	margin: 0 !important;
	font-size: 13.5px !important;
	color: rgba(255, 255, 255, 0.9) !important;
	line-height: 1.5 !important;
}

.mcu-doc-count-badge {
	background: rgba(255, 255, 255, 0.2);
	padding: 4px 14px;
	border-radius: 9999px;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	backdrop-filter: blur(4px);
}

/* Files List */
.mcu-doc-file-list {
	padding: 10px 20px;
	display: flex;
	flex-direction: column;
}

.mcu-doc-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 14px;
	border-bottom: 1px solid #f1f5f9;
	transition: all 0.2s ease;
	border-radius: 10px;
}

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

.mcu-doc-item:hover {
	background: #f8fafc;
}

/* File Badge (Flowbite Pill Style) */
.mcu-doc-file-badge {
	width: 54px;
	height: 54px;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.mcu-doc-file-badge .ext-label {
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.5px;
	margin-top: 2px;
}

.mcu-doc-file-badge.ext-pdf {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mcu-doc-file-badge.ext-doc, .mcu-doc-file-badge.ext-docx {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.mcu-doc-file-badge.ext-xls, .mcu-doc-file-badge.ext-xlsx, .mcu-doc-file-badge.ext-csv {
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.mcu-doc-file-badge.ext-ppt, .mcu-doc-file-badge.ext-pptx {
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}

.mcu-doc-file-badge.ext-zip {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mcu-doc-file-badge.ext-general {
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

/* File Details */
.mcu-doc-item-details {
	flex: 1;
	min-width: 0;
}

.mcu-doc-file-title {
	margin: 0 0 6px 0 !important;
	font-size: 15.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.4 !important;
}

.mcu-doc-file-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 12.5px;
	color: #64748b;
	flex-wrap: wrap;
}

.mcu-doc-file-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.mcu-doc-file-meta strong {
	color: #0f172a;
}

/* Download Button (Flowbite Solid Button) */
.mcu-doc-action {
	flex-shrink: 0;
}

.mcu-btn-download {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 9px 20px !important;
	border-radius: 8px !important;
	font-size: 13.5px !important;
	font-weight: 700 !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
	transition: all 0.15s ease !important;
}

.mcu-btn-download:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
	color: #ffffff !important;
}

/* Empty State & Error Notice */
.mcu-doc-empty {
	padding: 36px;
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
}

.mcu-doc-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #b91c1c;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 13.5px;
	margin: 18px 0;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
	.mcu-doc-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
	.mcu-btn-download {
		width: 100%;
		justify-content: center;
	}
	.mcu-doc-action {
		width: 100%;
	}
}
