/* Dedicated Bill List Detail Page & Public Lists Directory Styling */

.content-container.bill-list-page,
.content-container.bill-lists-dir {
	position: relative;
	width: 92%;
	max-width: 1150px;
	font-family: 'Open Sans', sans-serif;
	padding: 0 0 420px 0;
	margin: 28px auto 0 auto;
}

@media (min-width: 1024px) {
	.content-container.bill-list-page,
	.content-container.bill-lists-dir {
		padding: 0 0 300px 0;
	}
}

.is-hidden {
	display: none !important;
}

/* Alerts & Buttons */
.alert {
	padding: 10px 14px;
	border-radius: 8px;
	margin: 12px 0;
	font-size: 13px;
	font-weight: 600;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

.primary-btn,
.secondary-btn,
.outline-danger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 6px;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s ease;
	box-sizing: border-box;
}

.primary-btn {
	background: var(--green);
	color: #ffffff !important;
	border: 1px solid var(--green);
}

.primary-btn:hover:not(:disabled) {
	background: var(--med-green);
	text-decoration: none;
}

.secondary-btn {
	background: #f8fafc;
	color: #334155 !important;
	border: 1px solid #cbd5e1;
}

.secondary-btn:hover:not(:disabled) {
	background: #f1f5f9;
	border-color: #94a3b8;
	text-decoration: none;
}

.outline-danger-btn {
	background: #ffffff;
	color: var(--red) !important;
	border: 1px solid #fca5a5;
}

.outline-danger-btn:hover:not(:disabled) {
	background: #fef2f2;
	border-color: var(--red);
}

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

/* Access Denied / 404 Card */
.list-state-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 40px 28px;
	text-align: center;
	max-width: 560px;
	margin: 32px auto;
}

.list-state-card h1 {
	font-size: 20px;
	margin-bottom: 10px;
}

.list-state-card p {
	color: #64748b;
	margin-bottom: 20px;
}

.state-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Hero Card */
.list-hero-card,
.list-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 22px 26px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.list-hero-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
}

.list-hero-info {
	flex: 1;
	min-width: 240px;
}

.list-meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 8px;
	font-size: 12px;
	color: #64748b;
}

.vis-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.vis-private { background: #f1f5f9; color: #475569; }
.vis-shared  { background: #e0f2fe; color: #0369a1; }
.vis-public  { background: #dcfce7; color: #166534; }

.list-title {
	margin: 0 0 6px 0;
	font-size: 22px;
	font-weight: 800;
	color: #1e293b;
	text-transform: none;
}

.list-description {
	margin: 0;
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
}

.list-hero-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Owner Settings & Share Panel */
.settings-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 820px) {
	.settings-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.settings-col h2 {
	font-size: 14px;
	margin: 0 0 14px 0;
	color: #1e293b;
}

.settings-col.is-muted {
	opacity: 0.65;
}

.form-group {
	margin-bottom: 14px;
}

.form-group label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #475569;
	margin-bottom: 5px;
}

.opt {
	font-weight: 400;
	text-transform: none;
	color: #94a3b8;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-family: 'Roboto Flex', sans-serif;
	font-size: 14px;
	color: #1e293b;
	box-sizing: border-box;
}

.settings-btn-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.share-hint {
	margin: 0 0 12px 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
}

.share-input-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

.share-input-row input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
}

.notify-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #475569;
	cursor: pointer;
	margin-bottom: 12px;
}

.shares-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.share-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	font-size: 12px;
	color: #334155;
}

.share-remove-btn {
	background: none;
	border: none;
	color: #94a3b8;
	font-weight: 700;
	cursor: pointer;
	padding: 0 2px;
	font-size: 13px;
}

.share-remove-btn:hover {
	color: var(--red);
}

/* Toolbar & Bills Table */
.list-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 16px;
}

.list-toolbar-left {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	color: #475569;
}

.list-toolbar-left select {
	padding: 6px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #ffffff;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}

.list-table-wrap {
	overflow-x: auto;
}

.list-bills-table {
	width: 100%;
	border-collapse: collapse;
}

.list-bills-table th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #64748b;
	padding: 10px 12px;
	border-bottom: 2px solid #e2e8f0;
	white-space: nowrap;
}

.list-bills-table td {
	padding: 12px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
	font-size: 13px;
}

.list-bills-table .center-col {
	text-align: center;
}

.bill-number-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
}

.bill-number-badge.bill-senate { background: #64748b; color: #ffffff !important; }
.bill-number-badge.bill-house  { background: #e2e8f0; color: #1e293b !important; }

.session-pill {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 5px;
	background: #e0f2fe;
	color: #0369a1;
	font-size: 11px;
	font-weight: 700;
}

a.list-bill-title:link,
a.list-bill-title:visited {
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
}

a.list-bill-title:hover {
	text-decoration: underline;
}

.sponsor-bubble {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 6px;
	white-space: nowrap;
	font-size: 12px;
}

.sponsor-bubble a:link,
.sponsor-bubble a:visited {
	color: #1e293b;
	font-weight: 500;
	text-decoration: none;
}

.sponsor-bubble-r { background: #ffe4e6; }
.sponsor-bubble-d { background: #dbeafe; }
.sponsor-bubble-other { background: #e2e8f0; }
.party-R { color: #dc2626; font-weight: 700; font-size: 11px; }
.party-D { color: #2563eb; font-weight: 700; font-size: 11px; }

.priority-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-size: 12px;
	font-weight: 700;
}

.list-rating-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.list-rating-pill.unrated {
	background: #f1f5f9;
	color: #94a3b8;
}

.list-rating-select {
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #475569;
	font-family: 'Open Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.remove-item-btn {
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	color: #94a3b8;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-weight: 700;
}

.remove-item-btn:hover {
	border-color: var(--red);
	color: var(--red);
	background: #fef2f2;
}

.list-empty {
	text-align: center;
	padding: 32px 16px;
	color: #64748b;
}

/* Public Lists Directory (/bill_lists.php) */
.dir-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 20px;
}

.dir-header h1 {
	margin: 0;
	font-size: 22px;
}

.dir-search-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.dir-search-bar input {
	flex: 1;
	max-width: 420px;
	padding: 10px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
}

.public-lists-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

@media (min-width: 720px) {
	.public-lists-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1060px) {
	.public-lists-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.public-list-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.public-list-card:hover {
	border-color: var(--green);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

.public-list-card h2 {
	margin: 0 0 8px 0;
	font-size: 16px;
	color: #1e293b;
	text-transform: none;
}

.public-list-card p {
	margin: 0 0 14px 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
}

.public-list-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #64748b;
	border-top: 1px solid #f1f5f9;
	padding-top: 10px;
}
