.affp-dashboard {
	max-width: 960px;
	margin: 0 auto;
	font-size: 15px;
}

.affp-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 2px solid #e2e8f0;
}

.affp-tabs li {
	margin: 0;
}

.affp-tabs li a {
	display: block;
	padding: 10px 16px;
	text-decoration: none;
	color: #475569;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
}

.affp-tabs li.affp-tab-active a {
	background: #ffffff;
	color: #0f172a;
	border-color: #e2e8f0;
	font-weight: 600;
	margin-bottom: -2px;
}

.affp-tab-content {
	padding: 4px 0 24px;
}

.affp-tab-content h3 {
	margin-top: 0;
}

.affp-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 20px;
}

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

.affp-table thead th {
	background: #f8fafc;
	font-weight: 600;
}

.affp-stats-table th {
	width: 40%;
}

.affp-copy-input,
.affp-url-generator input[type="url"],
.affp-url-generator input[type="text"],
.affp-form input[type="text"],
.affp-form input[type="email"],
.affp-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-sizing: border-box;
	font-size: 14px;
}

.affp-copy-input {
	background: #f8fafc;
	cursor: pointer;
	margin-bottom: 16px;
}

.affp-url-generator label,
.affp-form label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.affp-url-generator p,
.affp-form p {
	margin: 0 0 16px;
}

.affp-button {
	display: inline-block;
	padding: 10px 20px;
	background: #2563eb;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}

.affp-button:hover {
	background: #1d4ed8;
}

.affp-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.affp-status-active,
.affp-status-paid {
	background: #dcfce7;
	color: #166534;
}

.affp-status-unpaid,
.affp-status-pending {
	background: #fef9c3;
	color: #854d0e;
}

.affp-status-rejected,
.affp-status-inactive,
.affp-status-failed {
	background: #fee2e2;
	color: #991b1b;
}

.affp-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin: 0 0 20px;
}

.affp-notice-success {
	background: #dcfce7;
	color: #166534;
}

.affp-notice-error {
	background: #fee2e2;
	color: #991b1b;
}

.affp-notice-info,
.affp-notice-pending {
	background: #dbeafe;
	color: #1e40af;
}

.affp-creatives {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.affp-creative {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
}

.affp-creative h4 {
	margin: 0 0 8px;
}

.affp-creative-preview {
	margin: 10px 0;
}

.affp-creative-preview img {
	max-width: 100%;
	height: auto;
}

.affp-creative-code {
	width: 100%;
	height: 70px;
	font-family: monospace;
	font-size: 12px;
	padding: 8px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	box-sizing: border-box;
}

.affp-pagination {
	margin-top: 16px;
}

.affp-pagination ul {
	display: flex;
	gap: 4px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.affp-pagination a,
.affp-pagination span {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	text-decoration: none;
}

.affp-pagination .current {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}
