/* ======================================================================
   ČSEtS Members — Frontend CSS
   ====================================================================== */

/* --- Notifikace --- */
.csets-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 12px 0;
}
.csets-notice--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.csets-notice--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.csets-notice--info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* --- Badge --- */
.csets-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: .82em;
	font-weight: 600;
}
.csets-badge--success { background: #d4edda; color: #155724; }
.csets-badge--warning { background: #fff3cd; color: #856404; }
.csets-badge--error   { background: #f8d7da; color: #721c24; }
.csets-badge--muted   { background: #e2e3e5; color: #383d41; }

/* --- Tabs --- */
.csets-tabs__nav {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 20px;
}
.csets-tab-btn {
	padding: 8px 20px;
	border: none;
	background: none;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	font-size: 1em;
	color: #555;
	transition: color .15s, border-color .15s;
	margin-bottom: -2px;
}
.csets-tab-btn:hover { color: #2c5f2e; }
.csets-tab-btn--active {
	color: #2c5f2e;
	border-bottom-color: #2c5f2e;
	font-weight: 600;
}

/* --- Formulář --- */
.csets-form { max-width: 680px; margin-left: auto; margin-right: auto; }

.csets-form__section {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 20px;
}
.csets-form__section legend {
	font-weight: 700;
	font-size: 1.05em;
	color: #2c5f2e;
	padding: 0 8px;
}
.csets-form__row {
	display: flex;
	flex-direction: column;
	margin-bottom: 14px;
}
.csets-form__row label {
	font-weight: 600;
	margin-bottom: 4px;
	font-size: .93em;
}
.csets-form__row input,
.csets-form__row select,
.csets-form__row textarea {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
	width: 100%;
	box-sizing: border-box;
}
.csets-form__row input:focus,
.csets-form__row select:focus,
.csets-form__row textarea:focus {
	outline: none;
	border-color: #2c5f2e;
	box-shadow: 0 0 0 2px rgba(44,95,46,.15);
}
.csets-form__row--error input,
.csets-form__row--error select,
.csets-form__row--error textarea {
	border-color: #dc3545;
}
.csets-field-error {
	color: #dc3545;
	font-size: .85em;
	margin-top: 4px;
}
.csets-form__row--half {
	flex-direction: row;
	gap: 16px;
}
.csets-form__row--half > div {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.csets-form__submit {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.required { color: #dc3545; }

/* --- Profil header --- */
.csets-member-profile__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 14px 16px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 20px;
}

/* --- Platební tabulka --- */
.csets-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}
.csets-table th,
.csets-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}
.csets-table thead th {
	background: #f5f5f5;
	font-weight: 600;
}

/* --- Registrace --- */
.csets-member-register {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Login --- */
.csets-login-form { max-width: 400px; margin-left: auto; margin-right: auto; }
.csets-dashboard-login { max-width: 480px; margin-left: auto; margin-right: auto; }
.csets-link { margin-left: 12px; font-size: .9em; }

/* --- Dashboard --- */
.csets-dashboard {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}

/* Tab bar (navigace + logout) */
.csets-dash-tabs {
	display: flex;
	align-items: center;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 24px;
	gap: 0;
	flex-wrap: wrap;
}

.csets-dash-tabs__nav {
	display: flex;
	gap: 0;
	flex: 1;
}

.csets-tab-btn {
	padding: 10px 20px;
	border: none;
	background: none;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	font-size: 1em;
	color: #555;
	transition: color .15s, border-color .15s;
	margin-bottom: -2px;
	white-space: nowrap;
}
.csets-tab-btn:hover { color: #2c5f2e; }
.csets-tab-btn--active {
	color: #2c5f2e;
	border-bottom-color: #2c5f2e;
	font-weight: 600;
}

.csets-dash-logout-form {
	margin-left: auto;
	display: flex;
	align-items: center;
	padding: 4px 0;
}

.csets-dash-logout-btn {
	border: none;
	background: none;
	cursor: pointer;
	color: #888;
	font-size: .88em;
	padding: 6px 12px;
	border-radius: 4px;
	transition: color .15s, background .15s;
}
.csets-dash-logout-btn:hover {
	color: #c00;
	background: #fff0f0;
}

/* Tab panes */
.csets-tab-pane h3 {
	font-size: 1em;
	margin-top: 20px;
	margin-bottom: 8px;
	color: #333;
}

/* Členství meta */
.csets-member-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 14px 16px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 20px;
}

.csets-member-meta__row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.csets-member-meta__label {
	font-size: .9em;
	color: #555;
}

.csets-dash-vs {
	font-family: monospace;
	font-size: 1em;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 2px 8px;
}

/* Platební tabulka — zvýraznění aktuálního roku */
.csets-payment-row--current td {
	background: #f0faf0;
	font-weight: 600;
}

.csets-payment-check {
	margin-right: 4px;
}

/* QR sekce */
.csets-qr-section {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e0e0e0;
}

.csets-qr-row {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.csets-qr-item {
	text-align: center;
}

.csets-qr-label {
	font-size: .88em;
	color: #555;
	margin-bottom: 6px;
	font-weight: 600;
}

.csets-qr-item img {
	display: block;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

/* --- Conference scores tabulka --- */
.csets-conf-scores {
	max-width: 340px;
	margin-top: 10px;
}
.csets-conf-scores td:first-child {
	font-size: 1.1em;
}

/* --- Responzivita --- */
@media (max-width: 600px) {
	.csets-form__row--half {
		flex-direction: column;
	}
	.csets-member-profile__header {
		flex-direction: column;
		align-items: flex-start;
	}
}
