/*
 * Modern theme for the whole account app, layered OVER Bootstrap 3 (Approach A).
 * Restyles the visible components (type, panels, forms, buttons, alerts, labels)
 * across every account page using Trellis tokens (tokens.css). Deliberately does
 * NOT touch Bootstrap's grid (.container/.row/.col-*), modals, or glyphicons — those
 * stay Bootstrap until a later "remove Bootstrap" pass. Loaded after Bootstrap so
 * these rules win. This file is only included by the account-app layout, so the
 * unscoped selectors only affect account pages.
 */

body {
	font-family: var(--rv-font);
	color: var(--rv-text);
	background: var(--rv-bg);
	-webkit-font-smoothing: antialiased;
}

/* Logged-in account chrome (header + content area) — see layouts/account.volt */
.account-header {
	background: var(--rv-surface);
	border-bottom: 1px solid var(--rv-border);
}

.account-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}

.account-header__brand img {
	height: 30px;
	width: auto;
	display: block;
}

.account-header__logout {
	font-size: 14px;
	font-weight: 600;
	color: var(--rv-text-muted);
}

.account-header__logout:hover {
	color: var(--rv-text);
}

/* Breathing room for the page content (was flush against the top). */
.account-main {
	padding: 32px 0 56px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
	color: var(--rv-text);
	font-weight: 700;
}

h1 {
	font-size: 26px;
	margin: 0 0 18px;
}

dl {
	margin: 0;
}

dt {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--rv-text-muted);
	margin-top: 12px;
}

dt:first-child {
	margin-top: 0;
}

dd {
	margin: 2px 0 0;
	color: var(--rv-text);
}

a {
	color: var(--rv-primary);
	text-decoration: none;
}

a:hover {
	color: var(--rv-primary-hover);
	text-decoration: underline;
}

/* Cards (Bootstrap panels) */
.panel,
.panel-default {
	background: var(--rv-surface);
	border: 1px solid var(--rv-border);
	border-radius: var(--rv-radius);
	box-shadow: var(--rv-shadow);
	margin-bottom: 20px;
}

.panel-heading {
	padding: 16px 20px;
	border-bottom: 1px solid var(--rv-border);
	background: transparent;
	border-radius: var(--rv-radius) var(--rv-radius) 0 0;
}

.panel-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: var(--rv-text);
}

.panel-body {
	padding: 20px;
}

/* Forms */
.form-group {
	margin-bottom: 16px;
}

label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--rv-text);
	margin-bottom: 6px;
}

.form-control,
input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
select,
textarea {
	width: 100%;
	height: auto;
	padding: 11px 13px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--rv-text);
	background: var(--rv-surface);
	border: 1px solid var(--rv-border-strong);
	border-radius: var(--rv-radius-sm);
	box-shadow: none;
	transition:
		border-color 0.12s ease,
		box-shadow 0.12s ease;
}

.form-control:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus,
input[type='tel']:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--rv-primary);
	box-shadow: var(--rv-focus-ring);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--rv-radius-sm);
	border: 1px solid transparent;
	box-shadow: none;
	transition:
		background-color 0.12s ease,
		border-color 0.12s ease,
		color 0.12s ease;
}

.btn-lg {
	padding: 12px 18px;
	font-size: 15px;
}

.btn-sm {
	padding: 7px 12px;
	font-size: 13px;
}

.btn-block {
	width: 100%;
	display: flex;
}

.btn-success,
.btn-primary {
	background: var(--rv-primary);
	border-color: var(--rv-primary);
	color: var(--rv-primary-contrast);
}

.btn-success:hover,
.btn-success:focus,
.btn-primary:hover,
.btn-primary:focus {
	background: var(--rv-primary-hover);
	border-color: var(--rv-primary-hover);
	color: var(--rv-primary-contrast);
}

.btn-default,
.btn-secondary {
	background: var(--rv-surface);
	border-color: var(--rv-border-strong);
	color: var(--rv-text);
}

.btn-default:hover,
.btn-secondary:hover {
	background: var(--rv-bg);
}

.btn-danger {
	background: var(--rv-danger);
	border-color: var(--rv-danger);
	color: #fff;
}

/* Quiet, borderless action — for the least-important control in a group (e.g. Logout). */
.btn-ghost {
	background: transparent;
	border-color: transparent;
	color: var(--rv-text-muted);
}

.btn-ghost:hover,
.btn-ghost:focus {
	background: var(--rv-bg);
	color: var(--rv-text);
}

/* Space out grouped buttons (Bootstrap joins them; a modern gap reads cleaner). */
.btn-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Alerts */
.alert {
	border-radius: var(--rv-radius-sm);
	padding: 11px 14px;
	margin-bottom: 16px;
	font-size: 14px;
	border: 1px solid transparent;
}

.alert-danger {
	background: var(--rv-danger-surface);
	border-color: #f3c5c5;
	color: var(--rv-danger);
}
.alert-success {
	background: var(--rv-success-surface);
	border-color: #b5fbd4;
	color: var(--rv-primary-hover);
}
.alert-info {
	background: #f1f7fe;
	border-color: #bfdcf8;
	color: #1f6fb2;
}
.alert-warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92722a;
}

/* Labels / badges */
.label {
	display: inline-block;
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 600;
	border-radius: var(--rv-radius-pill);
	line-height: 1.4;
}

.label-success,
.label-primary {
	background: var(--rv-success-surface);
	color: var(--rv-primary-hover);
}
.label-danger {
	background: var(--rv-danger-surface);
	color: var(--rv-danger);
}
.label-default {
	background: var(--rv-bg);
	color: var(--rv-text-muted);
}
