/* ============================================================
   Attachments – SoftSteel Glass • Navy Cool UI
   Zachte panelen, strakke randen, koele blauwe highlights
   ============================================================ */

.attachment-preview,
.attachment-preview * {
	box-sizing: border-box;
}

/* Card */
.attachment-preview {
	min-width: 300px;
	padding: 10px 10px; /* 22px boven/onder, 16px links/rechts */
	border-radius: 14px;
	margin: 26px 0;

	/* Core surface */
	background: rgba(225, 235, 242, 0.78); /* #E1EBF2 softened glass */
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);

	/* Premium frame: outer + inner subtle highlight */
	border: 1px solid rgba(23,48,85,0.30);       /* Outer cool navy outline */
	box-shadow:
		inset 0 0 0.5px rgba(255,255,255,0.65), /* Inner glass highlight */
		0 6px 20px rgba(23,48,85,0.18),        /* Soft navy shadow */
		0 0 14px rgba(80,119,163,0.22);        /* Blue accent glow */

	color: #333333;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Hover → subtiel lux-effect, geen lift */
.attachment-preview:hover {
	border-color: rgba(23,48,85,0.45);
	box-shadow:
		inset 0 0 0.7px rgba(255,255,255,0.75),
		0 8px 26px rgba(23,48,85,0.28),
		0 0 18px rgba(80,119,163,0.32);
}

/* Thumbnail */
.attachment-preview .picture {
	width: 60px;
	height: 60px;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(225,235,242,0.35); /* #E1EBF2 tint */
	border: 1px solid rgba(23,48,85,0.25);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.attachment-preview .picture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.attachment-preview .picture.iconic img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 6px;
}

/* Info block */
.attachment-preview .file-info {
	display: flex;
	align-items: center;
	gap: 12px;

	padding: 12px 16px;
	border-radius: 10px;

	/* Koeler en helderder glas */
	background: rgba(225, 235, 242, 0.45); /* #E1EBF2 tint */
	backdrop-filter: blur(8px) saturate(160%);
	-webkit-backdrop-filter: blur(8px) saturate(160%);

	/* Premium rand: navy + lichte highlight */
	border: 1px solid rgba(23,48,85,0.22);
	box-shadow:
		inset 0 0 0.7px rgba(255,255,255,0.55), /* inner highlight */
		0 2px 6px rgba(23,48,85,0.10);         /* soft cool drop shadow */

	color: #173055;
}

/* Title & metadata */
.attachment-preview .id3-title {
	font-weight: 600;
	color: #173055;
}

.attachment-preview .id3-info {
	margin-top: 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: #333333;
}

.attachment-preview .id3-info .fa {
	font-size: 1.15em;
	color: #5077A3;
	text-shadow: 0 0 3px rgba(80,119,163,0.25);
}

/* Download icon */
.attachment-preview .download-button {
	font-size: 20px;
	margin-left: auto;
	cursor: pointer;
	color: #5077A3;
	transition: 0.25s;
	text-shadow: 0 0 5px rgba(80,119,163,0.25);
}

.attachment-preview .download-button:hover {
	color: #173055;
	text-shadow: 0 0 8px rgba(80,119,163,0.40);
}

/* Optional darker/night */
.dark-theme .attachment-preview {
	background: rgba(23,48,85,0.55);
	color: #E1EBF2;
	border-color: rgba(236,245,255,0.18);
	box-shadow:
		inset 0 0 0.5px rgba(255,255,255,0.35),
		0 12px 32px rgba(0,0,0,0.45),
		0 0 22px rgba(80,119,163,0.32);
}
