/* ================================================================
   FPT100 Trader Performance — Frontend Styles
   ================================================================ */

/* Common */
.fpt-form-wrap,
.fpt-card,
.fpt-attempts-wrap {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-sizing: border-box;
}

.fpt-notice {
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 14px;
}
.fpt-notice-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.fpt-notice-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.fpt-notice-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.fpt-notice-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* Grid */
.fpt-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
.fpt-field-full { grid-column: 1 / -1; }
.fpt-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.fpt-field label { font-size: 13px; font-weight: 600; color: #374151; }
.fpt-field input,
.fpt-field select,
.fpt-field textarea {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
	color: #111827;
	outline: none;
	transition: border-color .15s;
	box-sizing: border-box;
	width: 100%;
}
.fpt-field input:focus,
.fpt-field select:focus,
.fpt-field textarea:focus { border-color: #3b82f6; }

/* Buttons */
.fpt-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: none;
	transition: background .2s, opacity .2s;
}
.fpt-btn-primary {
	background: #3b82f6;
	color: #fff;
}
.fpt-btn-primary:hover { background: #2563eb; color: #fff; }
.fpt-btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* Submit row */
.fpt-submit { margin-top: 20px; }

/* Table */
.fpt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.fpt-table th,
.fpt-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}
.fpt-table th {
	background: #f8fafc;
	font-weight: 600;
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.fpt-table tbody tr:hover { background: #fafafa; }

/* Badges */
.fpt-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	background: #e5e7eb;
	color: #374151;
}
.fpt-badge-draft     { background: #fef3c7; color: #92400e; }
.fpt-badge-submitted { background: #dbeafe; color: #1e40af; }
.fpt-badge-approved  { background: #dcfce7; color: #166534; }
.fpt-badge-rejected  { background: #fee2e2; color: #991b1b; }

/* Trader cards (directory) */
.fpt-trader-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
	transition: box-shadow .2s;
}
.fpt-trader-card:hover { box-shadow: 0 4px 16px rgba(2,6,23,.08); }

/* Pagination */
.fpt-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px 0;
	flex-wrap: wrap;
}

/* Single trader page */
.fpt-single-wrap { max-width: 900px; margin: 0 auto; }
.fpt-single-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 32px;
}
.fpt-single-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
}
.fpt-single-style { color: #64748b; margin: 0; }
.fpt-single-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
}
.fpt-single-stats { display: flex; flex-direction: column; gap: 12px; }
.fpt-stat-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f8fafc;
	border-radius: 8px;
	font-size: 14px;
}

/* Muted text */
.fpt-muted { color: #9ca3af; font-size: 13px; }

/* Responsive */
@media (max-width: 768px) {
	.fpt-grid { grid-template-columns: 1fr; }
	.fpt-single-grid { grid-template-columns: 1fr; }
	.fpt-single-header { flex-direction: column; text-align: center; }
}
