/* =========================================================
   REGIMA APPOINTMENTS PORTAL — login + sidebar layout
   Spalvos: pagrindinė #005d7a, akcentas #118193, šviesi #c8e3ec
   ========================================================= */

* { box-sizing: border-box; }
html, body {
	margin: 0; padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #f0f5f8;
	color: #1f2d3d;
	-webkit-font-smoothing: antialiased;
}

/* ====================== LOGIN ====================== */
.rga-portal-login-body {
	min-height: 100vh;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #005d7a 0%, #118193 100%);
	padding: 24px;
}
.rga-login-card {
	background: #fff;
	width: 100%; max-width: 420px;
	border-radius: 18px;
	padding: 38px 36px 32px;
	box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.rga-login-logo { text-align: center; margin-bottom: 18px; }
.rga-login-logo img { max-width: 160px; height: auto; }
.rga-login-card h1 {
	margin: 0 0 4px;
	color: #005d7a;
	font-size: 24px;
	text-align: center;
	font-weight: 700;
}
.rga-login-sub {
	margin: 0 0 24px;
	color: #6b7c93;
	font-size: 14px;
	text-align: center;
}
.rga-login-err {
	background: #fde7e7; color: #b32424; border: 1px solid #f5b8b8;
	padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px;
}
.rga-field { margin-bottom: 14px; }
.rga-field label {
	display: block; font-size: 13px; color: #005d7a; font-weight: 600;
	margin-bottom: 6px; letter-spacing: .2px;
}
.rga-field input {
	width: 100%; padding: 12px 14px;
	border: 1px solid #c8e3ec; border-radius: 10px;
	font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
	background: #fff;
}
.rga-field input:focus {
	outline: none; border-color: #118193;
	box-shadow: 0 0 0 3px rgba(17,129,147,.15);
}
.rga-remember {
	display: flex; align-items: center; gap: 8px; font-size: 14px;
	color: #6b7c93; margin-bottom: 18px; cursor: pointer;
}
.rga-login-btn {
	width: 100%; padding: 13px;
	background: #005d7a; color: #fff;
	border: none; border-radius: 10px;
	font-size: 15px; font-weight: 700; letter-spacing: .3px;
	cursor: pointer; transition: background .15s ease, transform .05s ease;
}
.rga-login-btn:hover { background: #118193; }
.rga-login-btn:active { transform: scale(.98); }

/* ====================== INNER LAYOUT ====================== */
.rga-portal-body {
	display: flex;
	min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.rga-sidebar {
	width: 260px; flex-shrink: 0;
	background: #003c4f;
	color: #cce4ec;
	display: flex; flex-direction: column;
	position: sticky; top: 0; height: 100vh;
}
.rga-sidebar-logo {
	padding: 22px 22px 18px;
	border-bottom: 1px solid rgba(255,255,255,.08);
	text-align: center;
}
.rga-sidebar-logo img {
	max-width: 130px; height: auto;
	background: #fff; padding: 8px; border-radius: 8px;
}
.rga-sidebar-title {
	margin-top: 10px; font-size: 12px; color: #9bc7d3;
	text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600;
}
.rga-sidebar-nav { flex: 1; padding: 14px 10px; overflow-y: auto; }
.rga-nav-item {
	display: flex; align-items: center; gap: 12px;
	padding: 12px 14px;
	color: #cce4ec; text-decoration: none;
	border-radius: 8px; margin-bottom: 4px;
	font-size: 14px; font-weight: 500;
	transition: background .15s ease, color .15s ease;
}
.rga-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.rga-nav-item.is-active {
	background: #005d7a;
	color: #fff;
	box-shadow: inset 3px 0 0 #6dd5e0;
}
.rga-nav-icon { font-size: 18px; width: 22px; text-align: center; }

.rga-sidebar-footer {
	padding: 14px 16px 18px;
	border-top: 1px solid rgba(255,255,255,.08);
}
.rga-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rga-user-avatar {
	width: 38px; height: 38px; border-radius: 50%;
	background: linear-gradient(135deg,#118193,#6dd5e0);
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 16px;
}
.rga-user-name { font-size: 14px; color: #fff; font-weight: 600; }
.rga-user-role { font-size: 11px; color: #7ba6b3; text-transform: uppercase; letter-spacing: .5px; }
.rga-logout {
	display: block; text-align: center;
	padding: 9px 12px; background: rgba(255,255,255,.05);
	color: #cce4ec; text-decoration: none;
	border-radius: 8px; font-size: 13px;
	transition: background .15s ease;
}
.rga-logout:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ===== MAIN ===== */
.rga-main {
	flex: 1; min-width: 0;
	background: #f0f5f8;
}
.rga-topbar {
	display: flex; align-items: center; justify-content: space-between;
	padding: 18px 32px;
	background: #fff;
	border-bottom: 1px solid #c8e3ec;
	position: sticky; top: 0; z-index: 10;
}
.rga-page-title { margin: 0; font-size: 22px; color: #005d7a; font-weight: 700; }
.rga-home-link {
	color: #118193; text-decoration: none; font-size: 13px; font-weight: 600;
	padding: 8px 14px; border: 1px solid #c8e3ec; border-radius: 8px;
	transition: background .15s ease;
}
.rga-home-link:hover { background: #f0f8fb; }
.rga-menu-toggle {
	display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #005d7a;
}

.rga-notice {
	margin: 16px 32px 0;
	padding: 12px 18px;
	background: #e0f5e8; color: #1e7d3a;
	border: 1px solid #b8e5c4; border-radius: 8px;
	font-size: 14px;
}

.rga-content {
	padding: 24px 32px 50px;
}

/* Atsisakome WP admin .wrap pradinio padding'o portale */
.rga-content .wrap { margin: 0; max-width: none; }
.rga-content .wrap > h1:first-child { display: none; } /* topbar'e jau yra antraštė */

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
	.rga-portal-body { flex-direction: column; }
	.rga-sidebar {
		position: fixed; left: -270px; top: 0; height: 100vh; z-index: 100;
		transition: left .25s ease;
	}
	.rga-sidebar.is-open { left: 0; }
	.rga-menu-toggle { display: block; }
	.rga-topbar { padding: 14px 18px; }
	.rga-content { padding: 18px; }
}
