/* RO-MD Core public styles placeholder (STEP 1). */

/* ================================================================
   DASHBOARD – layout, nav, panels, forms, flash
   ================================================================ */

.romd-dashboard {
	border: 1px solid #d0e0f0;
	border-radius: 14px;
	padding: 1.5rem;
	background: #ffffff;
	max-width: 960px;
	margin-inline: auto;
}

.romd-dashboard__flash {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-weight: 600;
	transition: opacity 0.4s;
}

.romd-dashboard__flash--ok {
	background: #e8f0f8;
	color: #145280;
	border: 1px solid #a8c8e0;
}

.romd-dashboard__flash--error {
	background: #fdeaea;
	color: #8b1b1b;
	border: 1px solid #e8a8a8;
}

.romd-dashboard__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #d8e8f5;
	padding-bottom: 1rem;
}

.romd-dashboard__header h2 {
	margin: 0 0 0.15rem;
	font-size: 1.4rem;
}

.romd-dashboard__header p {
	margin: 0;
	color: #4a5e7a;
	font-size: 0.93rem;
}

.romd-dashboard__status-pill {
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: #e8f0f8;
	color: #145280;
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}

/* Sidebar + panels layout */
.romd-dashboard__layout {
	display: grid;
	grid-template-columns: 210px 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 680px) {
	.romd-dashboard__layout {
		grid-template-columns: 1fr;
	}
}

/* Sidenav */
.romd-dashboard__sidenav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.romd-dashboard__nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 0.9rem;
	border-radius: 8px;
	text-decoration: none;
	color: #253a5e;
	font-weight: 500;
	font-size: 0.93rem;
	transition: background 0.15s, color 0.15s;
}

.romd-dashboard__nav-link:hover {
	background: #edf2ff;
	color: #0d3d7a;
}

.romd-dashboard__nav-link.is-active {
	background: #1a5f9e;
	color: #fff;
}

.romd-dashboard__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	border-radius: 999px;
	background: rgba(255,255,255,0.25);
	color: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0 0.3rem;
}

.romd-dashboard__nav-link:not(.is-active) .romd-dashboard__badge {
	background: #c8dff5;
	color: #0d3d7a;
}

/* Panels */
.romd-dashboard__panel {
	display: none;
}

.romd-dashboard__panel.is-active {
	display: block;
}

.romd-dashboard__panel h3 {
	margin-top: 0;
	margin-bottom: 1.25rem;
	font-size: 1.1rem;
	border-bottom: 1px solid #d8e8f5;
	padding-bottom: 0.6rem;
}

/* Summary cards inside Account panel */
.romd-dashboard__summary-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.romd-dashboard__summary-card {
	border: 1px solid #d8e5f5;
	border-radius: 10px;
	padding: 1rem;
	background: #f8fbff;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.romd-dashboard__summary-card strong {
	font-size: 1.6rem;
	color: #1a5f9e;
}

.romd-dashboard__summary-card span {
	font-size: 0.82rem;
	color: #4a5e7a;
}

a.romd-dashboard__summary-card--link {
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

a.romd-dashboard__summary-card--link:hover {
	border-color: #1a5f9e;
	background: #edf5ff;
	box-shadow: 0 2px 8px rgba(26, 95, 158, 0.10);
}

a.romd-dashboard__summary-card--link:hover strong {
	color: #0f4880;
}

/* Info list */
.romd-dashboard__info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	font-size: 0.93rem;
}

/* Item list (saved/funding/consultants) */
.romd-dashboard__item-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.romd-dashboard__item-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	border: 1px solid #d8e8f5;
	border-radius: 8px;
	background: #f8fbff;
	font-size: 0.93rem;
}

.romd-dashboard__item-list a {
	flex: 1;
	color: #1d4f8f;
	text-decoration: none;
	font-weight: 500;
}

.romd-dashboard__item-list a:hover {
	text-decoration: underline;
}

.romd-dashboard__remove-btn {
	border: 1px solid #b8d0e8;
	background: #fff;
	color: #8b1b1b;
	padding: 0.3rem 0.65rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.8rem;
	white-space: nowrap;
}

.romd-dashboard__remove-btn:hover {
	background: #fdeaea;
	border-color: #e8a8a8;
}

.romd-dashboard__empty {
	color: #4a5e7a;
	padding: 0.75rem;
	border: 1px dashed #c8d8ec;
	border-radius: 8px;
	background: #f5f8ff;
}

/* Forms */
.romd-dashboard__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 560px;
}

.romd-form__row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 480px) {
	.romd-form__row--half {
		grid-template-columns: 1fr;
	}
}

.romd-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.romd-form__field label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #253a5e;
}

.romd-form__field small {
	font-size: 0.8rem;
	color: #617494;
}

.romd-form__field input,
.romd-form__field textarea,
.romd-form__field select {
	padding: 0.5rem 0.7rem;
	border: 1px solid #c0d0e8;
	border-radius: 6px;
	background: #fff;
	font-size: 0.93rem;
	width: 100%;
	box-sizing: border-box;
}

.romd-form__field input:disabled {
	background: #eef2f8;
	color: #7a8fa0;
	cursor: not-allowed;
}

.romd-form__fieldset {
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	padding: 1rem;
	margin: 0;
}

.romd-form__fieldset legend {
	font-weight: 700;
	padding: 0 0.5rem;
	font-size: 0.93rem;
}

.romd-form__actions {
	display: flex;
	gap: 0.75rem;
}

.romd-btn {
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.93rem;
	transition: background 0.15s;
}

.romd-btn--primary {
	background: #1a5f9e;
	color: #fff;
}

.romd-btn--primary:hover {
	background: #0d3d7a;
}

/* Legacy compat – keep count spans */
.romd-dashboard__summary-card strong span[data-romd-user-list-count] {
	font-size: inherit;
	color: inherit;
}

/* Notifications list */
.romd-dashboard__notifications-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.romd-dashboard__notif-item {
	padding: 0.75rem 1rem;
	border: 1px solid #d8e5f5;
	border-radius: 8px;
	background: #f8fbff;
}

.romd-dashboard__notif-item--unread {
	border-left: 3px solid #1a5f9e;
	background: #edf5ff;
}

.romd-dashboard__notif-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
}

.romd-dashboard__notif-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: #19325f;
}

.romd-dashboard__notif-item--unread .romd-dashboard__notif-title::before {
	content: '● ';
	color: #1a5f9e;
	font-size: 0.6rem;
	vertical-align: middle;
	margin-right: 0.2rem;
}

.romd-dashboard__notif-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.romd-dashboard__notif-date {
	font-size: 0.82rem;
	color: #4a5e7a;
	white-space: nowrap;
}

.romd-dashboard__notif-delete {
	background: none;
	border: none;
	cursor: pointer;
	color: #4a5e7a;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0 0.2rem;
	border-radius: 4px;
	transition: color 0.15s, background 0.15s;
}

.romd-dashboard__notif-delete:hover {
	color: #c0392b;
	background: #fdecea;
}

.romd-directory {
	border: 1px solid #d0e0f0;
	border-radius: 10px;
	padding: 1rem;
	background: #ffffff;
	margin-block: 1rem;
}

.romd-directory.is-loading {
	opacity: 0.75;
}

.romd-directory__filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.romd-directory__field label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.romd-directory__field input,
.romd-directory__field select,
.romd-directory__field textarea {
	width: 100%;
	padding: 0.5rem 0.6rem;
	border-radius: 6px;
	border: 1px solid #c0d0e8;
	background: #fff;
}

.romd-directory__actions {
	display: flex;
	gap: 0.5rem;
	align-items: end;
}

.romd-directory__button {
    border: 1px solid #033AC7;
    background: #033AC7;
    color: #fff;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    border-radius: 10px;
    cursor: pointer;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.romd-directory__button--ghost {
	background: #fff;
	color: #033AC7;
}

.romd-directory__meta {
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.romd-directory__results {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
}

.romd-directory__card {
	border: 1px solid #d8e5f5;
	border-radius: 8px;
	padding: 0.75rem;
	background: #f8fbff;
}

.romd-directory__card h3 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.romd-directory__card p {
	margin: 0;
}

.romd-directory__card-actions {
	display: flex;
	margin-top: 0.75rem;
}

.romd-directory__toggle {
    border: 1px solid #033AC7;
    background: #033AC7;
    color: #fff;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.romd-directory__toggle.is-active {
	background: #fff;
	color: #033AC7;
}

.romd-directory__toggle.is-loading {
	opacity: 0.7;
	cursor: progress;
}

.romd-directory__card-meta {
	font-size: 0.875rem;
	color: #4a5e7a;
	margin-bottom: 0.35rem;
}

.romd-directory__empty {
	grid-column: 1 / -1;
	padding: 0.75rem;
	border: 1px dashed #c8d8ec;
	border-radius: 8px;
	background: #f5f8ff;
}

/* ================================================================
   ACCESS REQUEST FORM – modern design with blue theme
   ================================================================ */

.romd-access-request-container {
	max-width: 720px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.romd-access-request-message {
	padding: 1rem 1.25rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	font-weight: 600;
	font-size: 0.95rem;
	animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.romd-access-request-message--success {
	background: #e8f0f8;
	color: #145280;
	border: 1px solid #a8c8e0;
}

.romd-access-request-message--error {
	background: #fdeaea;
	color: #8b1b1b;
	border: 1px solid #e8a8a8;
}

.romd-access-request-form-wrap {
	border: 1px solid #d0e0f0;
	border-radius: 14px;
	padding: 2rem;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(26, 95, 158, 0.08);
}

.romd-access-request-header {
	margin-bottom: 2rem;
	text-align: center;
	border-bottom: 1px solid #d8e8f5;
	padding-bottom: 1.5rem;
}

.romd-access-request-header h2 {
	margin: 0 0 0.5rem;
	font-size: 1.6rem;
	color: #1a5f9e;
	font-weight: 700;
}

.romd-access-request-header p {
	margin: 0;
	color: #4a5e7a;
	font-size: 0.95rem;
	line-height: 1.5;
}

.romd-access-request-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.romd-access-request-form-content {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
}

.romd-access-request-form-row {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.romd-access-request-form-row--half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 640px) {
	.romd-access-request-form-row--half {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

.romd-access-request-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.romd-access-request-form-label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #253a5e;
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.romd-access-request-form-required {
	color: #e74c3c;
}

.romd-access-request-form-input,
.romd-access-request-form-textarea {
	padding: 0.7rem 0.9rem;
	border: 1px solid #c0d0e8;
	border-radius: 8px;
	background: #fff;
	font-size: 0.95rem;
	font-family: inherit;
	color: #253a5e;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.romd-access-request-form-input::placeholder,
.romd-access-request-form-textarea::placeholder {
	color: #9aafc2;
}

.romd-access-request-form-input:focus,
.romd-access-request-form-textarea:focus {
	outline: none;
	border-color: #1a5f9e;
	background: #f8fbff;
	box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.1);
}

.romd-access-request-form-input:invalid:not(:placeholder-shown),
.romd-access-request-form-textarea:invalid:not(:placeholder-shown) {
	border-color: #e74c3c;
	background: #fef8f8;
}

.romd-access-request-form-textarea {
	resize: vertical;
	min-height: 120px;
	line-height: 1.5;
}

.romd-access-request-form-hint {
	font-size: 0.8rem;
	color: #7a8fa0;
	margin-top: -0.25rem;
}

.romd-access-request-form-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	cursor: pointer;
	font-size: 0.9rem;
	color: #253a5e;
	line-height: 1.5;
}

.romd-access-request-form-checkbox {
	width: 18px;
	height: 18px;
	margin-top: 0.15rem;
	cursor: pointer;
	accent-color: #1a5f9e;
}

.romd-access-request-form-actions {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	padding-top: 0.5rem;
	border-top: 1px solid #d8e8f5;
}

.romd-access-request-form-button {
	padding: 0.8rem 2rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	min-width: 160px;
}

.romd-access-request-form-button--primary {
	background: linear-gradient(135deg, #1a5f9e 0%, #0d3d7a 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(26, 95, 158, 0.3);
}

.romd-access-request-form-button--primary:hover {
	background: linear-gradient(135deg, #0d3d7a 0%, #08306e 100%);
	box-shadow: 0 6px 16px rgba(26, 95, 158, 0.4);
	transform: translateY(-2px);
}

.romd-access-request-form-button--primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(26, 95, 158, 0.3);
}

.romd-access-request-form-button--primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Responsive design */
@media (max-width: 640px) {
	.romd-access-request-form-wrap {
		padding: 1.5rem;
	}

	.romd-access-request-header {
		margin-bottom: 1.5rem;
		padding-bottom: 1rem;
	}

	.romd-access-request-header h2 {
		font-size: 1.3rem;
	}

	.romd-access-request-form-actions {
		flex-direction: column;
	}

	.romd-access-request-form-button {
		width: 100%;
		min-width: auto;
	}
}

/* ================================================================
   FRONTEND AUTH FORMS – login/register inside site design
   ================================================================ */

.romd-auth-card-wrap {
	max-width: 560px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.romd-auth-card {
	border: 1px solid #d0e0f0;
	border-radius: 14px;
	padding: 2rem;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(26, 95, 158, 0.08);
}

.romd-auth-card__head {
	margin-bottom: 1.5rem;
	text-align: center;
	border-bottom: 1px solid #d8e8f5;
	padding-bottom: 1.2rem;
}

.romd-auth-card__head h2 {
	margin: 0 0 0.45rem;
	font-size: 1.55rem;
	color: #1a5f9e;
	font-weight: 700;
}

.romd-auth-card__head p {
	margin: 0;
	color: #4a5e7a;
	font-size: 0.95rem;
	line-height: 1.45;
}

.romd-auth-message {
	padding: 0.8rem 1rem;
	border-radius: 10px;
	margin-bottom: 1rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.romd-auth-message--success {
	background: #e8f0f8;
	color: #145280;
	border: 1px solid #a8c8e0;
}

.romd-auth-message--error {
	background: #fdeaea;
	color: #8b1b1b;
	border: 1px solid #e8a8a8;
}

.romd-auth-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.romd-auth-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.romd-auth-form__field label {
	font-size: 0.9rem;
	font-weight: 600;
	color: #253a5e;
}

.romd-auth-form__field input {
	padding: 0.7rem 0.9rem;
	border: 1px solid #c0d0e8;
	border-radius: 8px;
	background: #fff;
	font-size: 0.95rem;
	font-family: inherit;
	color: #253a5e;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

.romd-auth-form__field input:focus {
	outline: none;
	border-color: #1a5f9e;
	background: #f8fbff;
	box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.1);
}

.romd-auth-form__check {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.88rem;
	color: #253a5e;
	cursor: pointer;
}

.romd-auth-form__check input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #1a5f9e;
}

.romd-auth-btn {
	padding: 0.78rem 1.45rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.95rem;
	transition: all 0.2s ease;
}

.romd-auth-btn--primary {
	background: linear-gradient(135deg, #1a5f9e 0%, #0d3d7a 100%);
	color: #fff;
	box-shadow: 0 4px 12px rgba(26, 95, 158, 0.3);
}

.romd-auth-btn--primary:hover {
	background: linear-gradient(135deg, #0d3d7a 0%, #08306e 100%);
	box-shadow: 0 6px 16px rgba(26, 95, 158, 0.4);
	transform: translateY(-1px);
}

.romd-auth-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-top: 1rem;
	padding-top: 0.9rem;
	border-top: 1px solid #d8e8f5;
	font-size: 0.9rem;
}

.romd-auth-card__meta a {
	color: #1d4f8f;
	text-decoration: none;
	font-weight: 500;
}

.romd-auth-card__meta a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.romd-auth-card {
		padding: 1.35rem;
	}

	.romd-auth-card__head h2 {
		font-size: 1.3rem;
	}

	.romd-auth-card__meta {
		flex-direction: column;
	}
}
