/* Copyright (C) 2026 B GINJA I Lda - GPL v3 - DolinnMeet */
:root {
	--dm-live: #d9480f;
	--dm-wait: #b08800;
	--dm-ok: #2b8a3e;
	--dm-border: rgba(128, 128, 128, 0.35);
	--dm-bg: rgba(128, 128, 128, 0.08);
}

/* Bar shown to the leader while the session is live */
.dolinnmeet-recbar {
	position: fixed; z-index: 100000; right: 12px; bottom: 12px;
	background: #1d1d1f; color: #fff; font-size: 12px; line-height: 1.4;
	padding: 6px 12px; border-radius: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.dolinnmeet-recbar a { color: #9fd3ff; text-decoration: underline; }
.dolinnmeet-recbar.paused { background: #555; }
.dolinnmeet-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dm-live); vertical-align: middle; }
.dolinnmeet-recbar .dolinnmeet-dot { animation: dmpulse 1.4s infinite; }
.dolinnmeet-recbar.paused .dolinnmeet-dot { animation: none; background: #aaa; }
@keyframes dmpulse { 0% { opacity: 1; } 50% { opacity: .3; } 100% { opacity: 1; } }

/* Bar shown to participants in follow mode */
.dolinnmeet-followbar {
	position: fixed; z-index: 100000; left: 50%; transform: translateX(-50%); bottom: 12px;
	background: #12355b; color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 18px;
	box-shadow: 0 2px 10px rgba(0,0,0,.3); display: flex; gap: 12px; align-items: center; max-width: 92vw; flex-wrap: wrap;
}
.dolinnmeet-followbar.same { background: #2b5d34; }
.dolinnmeet-followbar a { color: #fff; }
.dolinnmeet-followbar a.button { color: #12355b; background: #fff; border-radius: 12px; }

/* Room */
.dolinnmeet-room { display: flex; gap: 12px; align-items: stretch; min-height: 70vh; }
.dolinnmeet-stage { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.dolinnmeet-stagebar { padding: 6px 4px; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dolinnmeet-dot.live { background: var(--dm-live); animation: dmpulse 1.4s infinite; }
.dolinnmeet-dot.wait { background: var(--dm-wait); }
.dolinnmeet-dot.ended { background: #888; }
.dolinnmeet-dot.lost { background: #888; animation: dmpulse .7s infinite; }
.dolinnmeet-pagetitle { opacity: .7; margin-left: 10px; }
.dolinnmeet-screen {
	position: relative; flex: 1 1 auto; min-height: 60vh; overflow: hidden;
	border: 1px solid var(--dm-border); border-radius: 6px; background: var(--dm-bg);
}
.dolinnmeet-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .7; padding: 20px; text-align: center; }
.dolinnmeet-holder { position: absolute; transform-origin: 0 0; }
.dolinnmeet-holder .replayer-wrapper { position: relative; }
.dolinnmeet-holder iframe { border: 0; background: #fff; }
.dolinnmeet-side { flex: 0 0 300px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dolinnmeet-video iframe { width: 100%; height: 240px; border: 0; border-radius: 6px; background: #000; }
.dolinnmeet-steps { flex: 1 1 auto; overflow: auto; max-height: 70vh; border: 1px solid var(--dm-border); border-radius: 6px; padding: 8px; }
.dolinnmeet-steps-title { font-weight: bold; margin-bottom: 6px; }
.dolinnmeet-steps ol { margin: 0; padding-left: 20px; }
.dolinnmeet-steps li { margin: 3px 0; font-size: .92em; }
.dolinnmeet-step-time { opacity: .6; font-size: .9em; }
.dolinnmeet-steps li.dolinnmeet-step-page { font-weight: bold; }
.dolinnmeet-steps li.dolinnmeet-step-start, .dolinnmeet-steps li.dolinnmeet-step-end { list-style: none; opacity: .7; font-style: italic; }

@media (max-width: 900px) {
	.dolinnmeet-room { flex-direction: column; }
	.dolinnmeet-side { flex: 0 0 auto; }
	.dolinnmeet-screen { min-height: 55vh; }
}

/* Guest page */
body.dolinnmeet-public { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f5f7; color: #1d1d1f; }
.dolinnmeet-public .dolinnmeet-room { padding: 10px 16px; min-height: calc(100vh - 90px); }
.dolinnmeet-public .dolinnmeet-screen { background: #fff; }
.dolinnmeet-public-head { padding: 10px 16px; background: #12355b; color: #fff; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dolinnmeet-public-who { margin-left: auto; opacity: .85; }
.dolinnmeet-public-foot { text-align: center; font-size: 11px; opacity: .6; padding: 6px; }
.dolinnmeet-public-msg { max-width: 520px; margin: 15vh auto; padding: 24px; background: #fff; border-radius: 8px; text-align: center; }
.dolinnmeet-public .button { display: inline-block; padding: 8px 14px; background: #12355b; color: #fff; border-radius: 6px; text-decoration: none; }
.dolinnmeet-public .opacitymedium { opacity: .7; }
@media (prefers-color-scheme: dark) {
	body.dolinnmeet-public { background: #17181b; color: #e8e8ea; }
	.dolinnmeet-public-msg { background: #24262b; }
}

/* Guide (printable) */
.dolinnmeet-guide ol { padding-left: 22px; }
.dolinnmeet-guide li { margin: 4px 0; }
.dolinnmeet-guide .page { font-weight: bold; margin-top: 10px; }
@media print {
	#id-top, #id-left, .tabs, .tabsAction, .fiche .tabBar ~ .tabsAction, .noprint { display: none !important; }
}
.dolinnmeet-recbar.dolinnmeet-ask { background: #8a5a00; max-width: 520px; }
.dolinnmeet-recbar.dolinnmeet-ask .button { margin: 4px 0 0 6px; }
/* 0.2.4 review */
.dolinnmeet-replay .dolinnmeet-stage { display: flex; flex-direction: column; }
.dolinnmeet-replaybar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: #f4f4f4; border-top: 1px solid #ddd; }
.dolinnmeet-replaybar input[type=range] { flex: 1; }
.dolinnmeet-replay .dolinnmeet-video video { width: 100%; max-height: 260px; background: #000; }
.dolinnmeet-steps-click li { cursor: pointer; }
.dolinnmeet-steps-click li:hover { background: #eef3f8; }
li.dolinnmeet-step-current { background: #fff2cc; font-weight: bold; }
.dolinnmeet-videoupload { margin: 10px 0; padding: 8px; border: 1px dashed #bbb; border-radius: 4px; }
.dolinnmeet-videoupload progress { width: 200px; vertical-align: middle; }
/* 0.2.4 Jitsi */
.dolinnmeet-jitsi { width: 100%; height: 320px; background: #202124; border-radius: 4px; overflow: hidden; }
.dolinnmeet-jitsi iframe { width: 100%; height: 100%; border: 0; }
.dolinnmeet-jitsi-wait { color: #ddd; padding: 24px 12px; text-align: center; }
.dolinnmeet-speak { margin: 6px 0; padding: 6px; background: #f7f7f7; border: 1px solid #ddd; border-radius: 4px; }
.dolinnmeet-speak-hint { font-weight: bold; margin-bottom: 4px; }
.dolinnmeet-speak-modes .button { margin: 2px 4px 2px 0; }
.dolinnmeet-speak-rec.on { color: #c0392b; font-weight: bold; }
.dolinnmeet-speak-rec.on::before { content: "\25CF "; }
ul.dolinnmeet-hands { list-style: none; margin: 4px 0; padding: 0; }
ul.dolinnmeet-hands li { padding: 3px 0; }
ul.dolinnmeet-hands .button { margin-left: 4px; }
.dolinnmeet-recbar-hands > div { margin-top: 4px; }
.dolinnmeet-recbar-hands .button { margin-left: 4px; }
