/*
	OnlineOdev Moderasyon ve Aktivite Kisitlama Sistemi (v2.0)
	SnowFlat 1.4 & Mobil Tam Uyumlu, Tasmasiz Modern Tasarim
*/

#oo-mod-wrap, #oo-mod-wrap *,
.oo-mod-banner, .oo-mod-banner *,
.oo-mod-block-card, .oo-mod-block-card * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
}

.oo-mod-banner {
	width: 100%;
	max-width: 100%;
	border-radius: 10px;
	padding: 13px 16px;
	margin-bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.oo-mod-banner-warn {
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-left: 5px solid #d97706;
	color: #78350f;
}
.oo-mod-banner-red {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-left: 5px solid #dc2626;
	color: #7f1d1d;
}
.oo-mod-banner-body { flex: 1 1 260px; min-width: 0; }
.oo-mod-banner-title { font-size: 14px; font-weight: 800; margin-bottom: 3px; }
.oo-mod-banner-text { font-size: 13px; line-height: 1.45; word-wrap: break-word; }
.oo-mod-banner-acts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.oo-mod-banner-timer {
	background: #ffffff;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 7px 12px;
	text-align: center;
	min-width: 118px;
}
.oo-mod-banner-timer span:first-child {
	display: block;
	font-size: 10.5px;
	color: #991b1b;
	text-transform: uppercase;
	font-weight: 700;
}
.oo-mod-countdown { font-size: 15px; font-weight: 800; color: #dc2626; font-variant-numeric: tabular-nums; }
.oo-mod-ack-btn {
	background: #d97706;
	color: #ffffff;
	border: none;
	border-radius: 7px;
	padding: 8px 14px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}
.oo-mod-ack-btn:hover { background: #b45309; }

.oo-mod-block-card {
	width: 100%;
	max-width: 100%;
	background: #ffffff;
	border: 1px solid #fecaca;
	border-top: 4px solid #dc2626;
	border-radius: 12px;
	padding: 16px 18px;
	margin: 10px 0;
	box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}
.oo-mod-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.oo-mod-block-ico {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: #fef2f2;
	color: #dc2626;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.oo-mod-block-head h4 { margin: 0 0 2px 0; font-size: 15px; font-weight: 800; color: #991b1b; }
.oo-mod-block-meta { font-size: 12px; color: #64748b; }
.oo-mod-block-reason {
	background: #fef2f2;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13px;
	color: #7f1d1d;
	line-height: 1.5;
	margin-bottom: 12px;
	word-wrap: break-word;
}
.oo-mod-block-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
	color: #334155;
}
.oo-mod-block-acts { display: flex; flex-wrap: wrap; gap: 5px; }

.oo-mod-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.oo-pill-red { background: #fee2e2; color: #991b1b; }
.oo-pill-amber { background: #fef3c7; color: #92400e; }
.oo-pill-gray { background: #e2e8f0; color: #475569; }

#oo-mod-wrap { width: 100%; max-width: 100%; }
.oo-mod-hero {
	background: linear-gradient(135deg, #0f172a 0%, #991b1b 100%);
	color: #ffffff;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.oo-mod-hero h3 { margin: 0 0 4px 0; font-size: 16.5px; color: #fff; }
.oo-mod-hero p { margin: 0; font-size: 12.5px; color: #fecaca; line-height: 1.45; }
.oo-mod-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.oo-mod-hstat {
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 8px;
	padding: 8px 14px;
	text-align: center;
	min-width: 96px;
}
.oo-mod-hstat strong { display: block; font-size: 18px; color: #fff; }
.oo-mod-hstat span { font-size: 11px; color: #fecaca; }

.oo-mod-panel {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 14px;
}
.oo-mod-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
}
.oo-mod-panel h4 { margin: 0; font-size: 15px; font-weight: 800; color: #0f172a; }
.oo-mod-center-link { font-size: 12.5px; font-weight: 700; color: #2563eb; text-decoration: none; }

.oo-mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.oo-mod-field { margin-bottom: 12px; }
.oo-mod-field label { display: block; font-size: 12.5px; font-weight: 700; color: #334155; margin-bottom: 5px; }
.oo-mod-field input[type="text"],
.oo-mod-field input[type="number"],
.oo-mod-field select,
.oo-mod-field textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 13px;
	margin: 0;
}
.oo-mod-custom-row {
	display: flex;
	gap: 10px;
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px;
}
.oo-mod-custom-row input[type="number"] { max-width: 120px; }
.oo-mod-custom-row select { max-width: 160px; }

.oo-mod-chk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px;
}
.oo-mod-chk {
	display: flex !important;
	align-items: center;
	gap: 6px;
	font-weight: 600 !important;
	font-size: 12.5px !important;
	margin: 0 !important;
	cursor: pointer;
}
.oo-mod-sel-all {
	margin-left: 8px;
	background: #e2e8f0;
	color: #1e293b;
	border: none;
	border-radius: 5px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}
.oo-mod-submit {
	background: #dc2626;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.oo-mod-submit:hover { background: #b91c1c; }

.oo-mod-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.oo-mod-tabs a {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 7px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}
.oo-mod-tabs a.active { background: #0f172a; border-color: #0f172a; color: #ffffff; }

.oo-mod-log-list, .oo-mod-hist-list { display: flex; flex-direction: column; gap: 10px; }
.oo-mod-log-item, .oo-mod-hist-row {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 14px;
}
.oo-mod-hist-row { background: #f8fafc; }
.oo-mod-hist-title { margin: 16px 0 10px 0; font-size: 13.5px; font-weight: 800; color: #1e293b; }
.oo-mod-log-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.oo-mod-row-btns { display: flex; align-items: center; gap: 6px; }
.oo-mod-user-link { font-size: 14px; font-weight: 800; color: #0f172a; margin-right: 6px; text-decoration: none; }
.oo-mod-log-reason { font-size: 13px; color: #334155; line-height: 1.45; margin-bottom: 6px; word-wrap: break-word; }
.oo-mod-log-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.oo-mod-log-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	color: #64748b;
	padding-top: 6px;
	border-top: 1px dashed #e2e8f0;
}
.oo-mod-btn-lift {
	background: #16a34a;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
}
.oo-mod-btn-lift:hover { background: #15803d; }
.oo-mod-btn-del {
	background: #ef4444;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
}
.oo-mod-btn-del:hover { background: #dc2626; }
.oo-mod-empty {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 14px;
	font-size: 13px;
	color: #64748b;
	text-align: center;
}

@media (max-width: 640px) {
	.oo-mod-banner, .oo-mod-panel, .oo-mod-block-card { padding: 12px; }
	.oo-mod-banner-timer, .oo-mod-ack-btn, .oo-mod-submit { width: 100%; }
	.oo-mod-custom-row { flex-direction: column; align-items: stretch; }
	.oo-mod-custom-row input[type="number"], .oo-mod-custom-row select { max-width: 100%; }
}

/* Tıklanan Kısıtlı Butonlar İçin Şık Toast Uyarısı */
#oo-mod-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 20px);
	background: #0f172a;
	color: #f8fafc;
	border-left: 5px solid #dc2626;
	border-radius: 10px;
	padding: 12px 18px;
	max-width: min(460px, calc(100vw - 24px));
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
}
#oo-mod-toast.oo-toast-show {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}
#oo-mod-toast strong {
	display: block;
	font-size: 13.5px;
	color: #fca5a5;
	margin-bottom: 3px;
}
#oo-mod-toast span {
	display: block;
	font-size: 12.5px;
	line-height: 1.45;
	color: #e2e8f0;
}
