/**
 * AR TMC Staff Portal — Argon-styled frontend control center
 */

.artmc-spl-card,
.artmc-spl-dashboard,
.artmc-spl-account,
.artmc-spl-manager {
	font-family: 'Cairo', system-ui, sans-serif;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* ============================================================
 * CARD
 * ============================================================ */

.artmc-spl-card {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin: 18px auto;
}
.artmc-spl-card h3 {
	margin: 0 0 16px;
	font-size: 17px;
	color: #1a1a2e;
	font-weight: 700;
	padding-bottom: 10px;
	border-bottom: 2px solid #faf5ff;
}

/* ============================================================
 * ALERTS
 * ============================================================ */

.artmc-spl-alert {
	padding: 14px 18px;
	border-radius: 10px;
	margin: 14px 0;
	font-size: 14px;
	font-weight: 600;
}
.artmc-spl-alert-success { background: #ecfdf5; color: #047857; border-right: 4px solid #10b981; }
.artmc-spl-alert-error   { background: #fef2f2; color: #991b1b; border-right: 4px solid #ef4444; }
.artmc-spl-alert-info    { background: #faf5ff; color: #5a32a3; border-right: 4px solid #6f42c1; }

/* ============================================================
 * LOGIN
 * ============================================================ */

.artmc-spl-login {
	max-width: 440px;
}
.artmc-spl-login-head {
	text-align: center;
	margin-bottom: 20px;
}
.artmc-spl-login-head h2 {
	font-size: 24px;
	color: #6f42c1;
	font-weight: 800;
	margin: 0 0 4px;
	border: 0;
	padding: 0;
}
.artmc-spl-login-head p {
	color: #64748b;
	font-size: 14px;
	margin: 0;
}

.artmc-spl-logged-in {
	text-align: center;
}
.artmc-spl-logged-in h3 {
	border: 0;
	padding: 0;
	color: #6f42c1;
	margin: 12px 0 4px;
}
.artmc-spl-logged-in p {
	color: #64748b;
	margin: 0 0 16px;
}
.artmc-spl-avatar img {
	border-radius: 50%;
}

/* ============================================================
 * FORMS
 * ============================================================ */

.artmc-spl-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.artmc-spl-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.artmc-spl-field {
	display: flex;
	flex-direction: column;
}
.artmc-spl-field-wide {
	grid-column: 1 / -1;
}
.artmc-spl-field label {
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	margin-bottom: 6px;
}
.artmc-spl-field input,
.artmc-spl-field select {
	padding: 11px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-family: 'Cairo', sans-serif;
	font-size: 14px;
	background: #fafbfc;
	width: 100%;
	box-sizing: border-box;
}
.artmc-spl-field input:focus,
.artmc-spl-field select:focus {
	outline: none;
	border-color: #a855f7;
	background: white;
}

.artmc-spl-field-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}
.artmc-spl-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #475569;
	cursor: pointer;
}
.artmc-spl-link {
	color: #6f42c1;
	text-decoration: none;
	font-weight: 600;
}
.artmc-spl-link:hover { text-decoration: underline; }

/* ============================================================
 * BUTTONS
 * ============================================================ */

.artmc-spl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 20px;
	border: 1px solid #e2e8f0;
	background: white;
	color: #475569;
	border-radius: 10px;
	font-family: 'Cairo', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
}
.artmc-spl-btn:hover {
	border-color: #a855f7;
	color: #6f42c1;
	text-decoration: none;
}
.artmc-spl-btn-primary {
	background: linear-gradient(135deg, #6f42c1, #5a32a3);
	color: white;
	border-color: transparent;
}
.artmc-spl-btn-primary:hover {
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(111, 66, 193, 0.3);
}
.artmc-spl-btn-danger {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fca5a5;
}
.artmc-spl-btn-danger:hover {
	background: #ef4444;
	color: white;
	border-color: transparent;
}
.artmc-spl-btn-block { width: 100%; }
.artmc-spl-btn-sm { padding: 8px 14px; font-size: 13px; }

.artmc-spl-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
}

/* ============================================================
 * DASHBOARD
 * ============================================================ */

.artmc-spl-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #6f42c1, #5a32a3);
	color: white;
	border-radius: 16px;
	padding: 24px 28px;
	margin: 18px 0;
	flex-wrap: wrap;
	gap: 16px;
}
.artmc-spl-dash-user {
	display: flex;
	align-items: center;
	gap: 14px;
}
.artmc-spl-dash-user img {
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
}
.artmc-spl-dash-user h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}
.artmc-spl-role-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.2);
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	margin-top: 4px;
}
.artmc-spl-dash-header-actions {
	display: flex;
	gap: 8px;
}
.artmc-spl-dash-header .artmc-spl-btn {
	background: rgba(255, 255, 255, 0.15);
	color: white;
	border-color: rgba(255, 255, 255, 0.3);
}
.artmc-spl-dash-header .artmc-spl-btn:hover {
	background: white;
	color: #6f42c1;
}

.artmc-spl-admin-strip {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 12px;
	padding: 14px 20px;
	margin: 14px 0;
	flex-wrap: wrap;
	gap: 10px;
}
.artmc-spl-admin-strip > span {
	font-weight: 800;
	color: #991b1b;
	font-size: 14px;
}

.artmc-spl-dash-group {
	margin: 24px 0;
}
.artmc-spl-dash-group h3 {
	font-size: 16px;
	color: #6f42c1;
	font-weight: 700;
	margin: 0 0 14px;
	padding-right: 12px;
	border-right: 4px solid #6f42c1;
}

.artmc-spl-tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.artmc-spl-tool-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px;
	text-decoration: none;
	transition: all 0.2s;
}
.artmc-spl-tool-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(111, 66, 193, 0.14);
	border-color: #d8b4fe;
	text-decoration: none;
}
.artmc-spl-tool-icon {
	font-size: 32px;
	line-height: 1;
}
.artmc-spl-tool-label {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a2e;
}
.artmc-spl-tool-card:hover .artmc-spl-tool-label { color: #6f42c1; }
.artmc-spl-tool-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

/* ============================================================
 * ACCOUNT + MANAGER HEADERS
 * ============================================================ */

.artmc-spl-account-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 18px 0;
}
.artmc-spl-account-head img {
	border-radius: 50%;
}
.artmc-spl-account-head h2 {
	margin: 0;
	font-size: 22px;
	color: #6f42c1;
	font-weight: 800;
}
.artmc-spl-account-head p {
	margin: 2px 0 0;
	color: #64748b;
	font-size: 14px;
}
.artmc-spl-mgr-icon {
	width: 56px;
	height: 56px;
	background: #fef2f2;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

/* ============================================================
 * TABLE
 * ============================================================ */

.artmc-spl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.artmc-spl-table th {
	background: #fafbfc;
	color: #475569;
	padding: 12px 14px;
	text-align: right;
	font-weight: 700;
	font-size: 12px;
	border-bottom: 2px solid #e2e8f0;
}
.artmc-spl-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
}
.artmc-spl-table tr:hover td { background: #faf5ff; }
.artmc-spl-table .artmc-spl-role-badge {
	background: #faf5ff;
	color: #6f42c1;
}

.artmc-spl-muted {
	color: #94a3b8;
	font-size: 13px;
}

/* ============================================================
 * RESPONSIVE
 * ============================================================ */

@media (max-width: 680px) {
	.artmc-spl-form-grid { grid-template-columns: 1fr; }
	.artmc-spl-dash-header { flex-direction: column; align-items: stretch; text-align: center; }
	.artmc-spl-dash-user { flex-direction: column; }
	.artmc-spl-dash-header-actions { justify-content: center; }
	.artmc-spl-tool-grid { grid-template-columns: 1fr; }
	.artmc-spl-admin-strip { flex-direction: column; text-align: center; }
	.artmc-spl-table { font-size: 12px; }
	.artmc-spl-table th, .artmc-spl-table td { padding: 8px 10px; }
}
