:root {
	--primary-yellow: #f5b800;
	--teal: #20b2aa;
	--dark-teal: #008b8b;
	--coral-pink: #ff6b8a;
	--text-dark: #2d3436;
	--text-gray: #636e72;
	--white: #ffffff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Poppins", sans-serif;
	background: #f5f7f9;
	color: var(--text-dark);
}

.dashboard-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 60px;
}

.login-page .dashboard-container {
	max-width: 640px;
}

.login-page .dashboard-card {
	margin: 0 auto 30px;
}

.login-page .login-form {
	align-items: center;
}

.login-page .login-form label {
	width: 100%;
	max-width: 360px;
}

.login-page .login-form input {
	width: 100% !important;
	max-width: 100%;
	min-width: 0;
}

.dashboard-header {
	text-align: center;
	margin-bottom: 30px;
}

.dashboard-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 0 0 25px;
}

.dashboard-tab-btn {
	border: none;
	background: #f1f4f7;
	color: var(--text-dark);
	padding: 12px 22px;
	border-radius: 30px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-tab-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dashboard-tab-btn.is-active {
	background: linear-gradient(135deg, var(--teal), var(--dark-teal));
	color: var(--white);
}

.dashboard-tab-content {
	display: none !important;
}

.dashboard-tab-content.is-active {
	display: block !important;
}

.ara-bola-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.ara-bola-select {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--text-dark);
}

.ara-bola-select select {
	padding: 8px 14px;
	border-radius: 20px;
	border: 1px solid #dcdfe3;
	font-weight: 600;
}

.ara-bola-section {
	display: none;
}

.ara-bola-section.is-active {
	display: block;
}

.accesbanque-form {
	margin-bottom: 25px;
}

.accesbanque-input {
	color: #1f1f1f;
	font-weight: 500;
	background: #fff;
	border: 1px solid #c8c8c8;
	width: 80px !important;
	min-width: 80px !important;
	max-width: 80px !important;
}

.accesbanque-balance {
	color: #b30000 !important;
	font-weight: 800 !important;
}

.accesbanque-table .accesbanque-input {
	width: 80px !important;
	min-width: 80px !important;
	max-width: 80px !important;
}

.accesbanque-notes {
	width: 190px !important;
	min-width: 190px !important;
	max-width: 190px !important;
}

textarea.accesbanque-notes {
	min-height: 60px;
	resize: vertical;
}

.accesbanque-input.accesbanque-date-input {
	width: 160px !important;
	min-width: 160px !important;
	max-width: 160px !important;
}

.accesbanque-form .accesbanque-notes {
	width: 190px !important;
	min-width: 190px !important;
	max-width: 190px !important;
}

.accesbanque-table .accesbanque-notes {
	width: 190px !important;
	min-width: 190px !important;
	max-width: 190px !important;
}

.accesbanque-table-wrapper {
	max-height: 420px;
	overflow-y: auto;
	border: 1px solid #e3e8ee;
	border-radius: 12px;
}

.accesbanque-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.accesbanque-table th,
.accesbanque-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef1f4;
	text-align: left;
	vertical-align: middle;
	background: #fff;
}

.accesbanque-table th {
	background: #f6f8fa;
	font-weight: 700;
}

.finance-input {
	color: #1f1f1f;
	font-weight: 500;
	background: #fff;
	border: 1px solid #c8c8c8;
	width: 140px !important;
	min-width: 140px !important;
	max-width: 140px !important;
}

.finance-notes {
	width: 190px !important;
	min-width: 190px !important;
	max-width: 190px !important;
}

textarea.finance-notes {
	min-height: 60px;
	resize: vertical;
}

.finance-table-wrapper {
	max-height: 420px;
	overflow-y: auto;
	border: 1px solid #e3e8ee;
	border-radius: 12px;
}

.finance-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.finance-table th,
.finance-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef1f4;
	text-align: left;
	vertical-align: middle;
	background: #fff;
}

.finance-table th {
	background: #f6f8fa;
	font-weight: 700;
}

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

.dashboard-header-title {
	flex: 1;
	min-width: 260px;
}

.dashboard-header-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.profile-dropdown {
	position: relative;
}

.profile-btn {
	background: #ffffff;
	color: var(--text-dark);
	border: 1px solid #dcdfe3;
	padding: 10px 16px;
	border-radius: 24px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.profile-btn:hover {
	background: #f5f7f9;
}

.profile-name {
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.profile-menu {
	list-style: none;
	margin: 8px 0 0;
	padding: 8px 0;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
	position: absolute;
	right: 0;
	min-width: 150px;
	display: none;
	z-index: 20;
}

.profile-menu li a {
	display: block;
	padding: 10px 14px;
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 600;
}

.profile-menu li a:hover {
	background: #f5f7f9;
	color: var(--dark-teal);
}

.profile-dropdown.is-open .profile-menu {
	display: block;
}

.dashboard-header h1 {
	font-size: 2rem;
	color: var(--dark-teal);
	margin-bottom: 10px;
}

.dashboard-header p {
	color: var(--text-gray);
	margin: 0;
}

.role-pill {
	margin-top: 10px;
	font-size: 0.9rem;
	background: #e8f5f3;
	color: var(--dark-teal);
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
}

.role-links {
	margin-top: 12px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.role-links a {
	color: var(--teal);
	font-weight: 600;
	text-decoration: none;
}

.role-links a:hover {
	text-decoration: underline;
}

.show-password {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	color: var(--text-gray);
}

.show-password input[type="checkbox"] {
	width: auto;
}

.dashboard-card {
	background: var(--white);
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.dashboard-card h2 {
	margin-top: 0;
	color: var(--coral-pink);
}

.dashboard-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.login-form label {
	width: 100%;
}

.login-form input[type="text"],
.login-form input[type="password"] {
	width: 30% !important;
	min-width: 200px;
	max-width: 30%;
}

.login-form input {
	width: 30% !important;
	min-width: 200px;
	max-width: 30%;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
	color: var(--text-dark);
}

input,
select,
textarea {
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #dcdfe3;
	font-size: 0.95rem;
}

button {
	align-self: flex-start;
	background: var(--teal);
	color: var(--white);
	border: none;
	padding: 12px 24px;
	border-radius: 24px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

button:hover {
	background: var(--dark-teal);
}

.button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 24px;
	background: #f1f4f7;
	color: var(--text-dark);
	text-decoration: none;
	font-weight: 600;
}

.button-link:hover {
	background: #e3e8ee;
}

.alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 15px;
}

.alert-error {
	background: #ffe6e6;
	color: #b30000;
}

.alert-success {
	background: #e6f8ef;
	color: #1f7a50;
}

.table-wrapper {
	overflow-x: auto;
}

.table-wrapper table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.table-wrapper th,
.table-wrapper td {
	padding: 10px 12px;
	border-bottom: 1px solid #eef1f4;
	text-align: left;
}

.table-wrapper th {
	background: #f6f8fa;
	font-weight: 700;
}

.table-link {
	color: var(--dark-teal);
	font-weight: 600;
	text-decoration: none;
	margin-right: 8px;
}

.table-link:hover {
	text-decoration: underline;
}

.inline-form {
	display: inline;
}

#login-username,
#loginPassword {
	width: 30px;
}

.danger {
	background: #e74c3c;
}

.danger:hover {
	background: #c0392b;
}

.table-wrapper tbody tr:hover {
	background: #f9fcff;
}

@media (max-width: 768px) {
	.dashboard-header h1 {
		font-size: 1.6rem;
	}

	.dashboard-header-top {
		justify-content: center;
		text-align: center;
	}

	.dashboard-header-actions {
		align-items: center;
	}

	button {
		width: 100%;
		align-self: stretch;
	}
}
