/**
 * Frontend Partner Area Styles
 * Moratti Referral System
 */

/* ===== Login Container ===== */
.mrs-partner-login-container {
	max-width: 450px;
	margin: 40px auto;
	padding: 20px;
}

.mrs-partner-login-box {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 40px;
}

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

.mrs-login-header h2 {
	margin: 0 0 10px 0;
	font-size: 28px;
	font-weight: 600;
	color: #1a1a1a;
}

.mrs-login-header p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* ===== Form Styles ===== */
.mrs-form-group {
	margin-bottom: 20px;
}

.mrs-form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.mrs-form-control {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.mrs-form-control:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.mrs-checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #666;
}

.mrs-checkbox-label input[type="checkbox"] {
	margin-right: 8px;
}

/* ===== Buttons ===== */
.mrs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	gap: 8px;
}

.mrs-btn-primary {
	background: #0073aa;
	color: #fff;
}

.mrs-btn-primary:hover {
	background: #005a87;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.mrs-btn-secondary {
	background: #f0f0f1;
	color: #333;
}

.mrs-btn-secondary:hover {
	background: #dcdcde;
}

.mrs-btn-success {
	background: #25D366;
	color: #fff;
}

.mrs-btn-success:hover {
	background: #1da851;
}

.mrs-btn-block {
	width: 100%;
}

.mrs-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mrs-btn-loading {
	display: none;
}

.mrs-btn.loading .mrs-btn-text {
	display: none;
}

.mrs-btn.loading .mrs-btn-loading {
	display: inline;
}

/* ===== Login Footer ===== */
.mrs-login-footer {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.mrs-login-footer a {
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
}

.mrs-login-footer a:hover {
	text-decoration: underline;
}

/* ===== Notices ===== */
.mrs-notice {
	padding: 15px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
}

.mrs-notice-info {
	background: #e5f5fa;
	border-left: 4px solid #0073aa;
	color: #004a6b;
}

.mrs-notice-warning {
	background: #fff3cd;
	border-left: 4px solid #ffc107;
	color: #856404;
}

.mrs-notice-error {
	background: #f8d7da;
	border-left: 4px solid #dc3545;
	color: #721c24;
}

.mrs-notice-success {
	background: #d4edda;
	border-left: 4px solid #28a745;
	color: #155724;
}

.mrs-notice p {
	margin: 0;
}

.mrs-notice a {
	color: inherit;
	text-decoration: underline;
	font-weight: 600;
}

/* ===== Dashboard Container ===== */
.mrs-partner-dashboard-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
}

/* ===== Dashboard Header ===== */
.mrs-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 2px solid #eee;
}

.mrs-dashboard-header h2 {
	margin: 0 0 5px 0;
	font-size: 32px;
	font-weight: 600;
	color: #1a1a1a;
}

.mrs-dashboard-header p {
	margin: 0;
	color: #666;
	font-size: 15px;
}

/* ===== Stats Grid ===== */
.mrs-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.mrs-stat-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	gap: 20px;
	transition: all 0.3s ease;
}

.mrs-stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mrs-stat-icon {
	width: 60px;
	height: 60px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mrs-stat-icon svg {
	width: 28px;
	height: 28px;
	color: #fff;
}

.mrs-stat-icon-blue {
	background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
}

.mrs-stat-icon-green {
	background: linear-gradient(135deg, #25D366 0%, #1da851 100%);
}

.mrs-stat-icon-purple {
	background: linear-gradient(135deg, #826eb4 0%, #6b5b95 100%);
}

.mrs-stat-icon-red {
	background: linear-gradient(135deg, #dc3232 0%, #c92a2a 100%);
}

.mrs-stat-content {
	flex: 1;
}

.mrs-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1;
	margin-bottom: 5px;
}

.mrs-stat-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

/* ===== Card ===== */
.mrs-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	margin-bottom: 20px;
}

.mrs-card h3 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
}

/* ===== Referral Info ===== */
.mrs-referral-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mrs-info-row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 20px;
	align-items: center;
}

.mrs-info-row label {
	font-weight: 600;
	color: #333;
}

.mrs-ref-id {
	font-size: 24px;
	font-weight: 700;
	color: #0073aa;
	padding: 8px 16px;
	background: #e5f5fa;
	border-radius: 6px;
	display: inline-block;
}

.mrs-input-group {
	display: flex;
	gap: 10px;
}

.mrs-input-group .mrs-form-control {
	flex: 1;
	font-family: monospace;
	font-size: 13px;
}

/* ===== Table ===== */
.mrs-table-responsive {
	overflow-x: auto;
}

.mrs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.mrs-table thead {
	background: #f8f9fa;
}

.mrs-table th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	color: #333;
	border-bottom: 2px solid #dee2e6;
}

.mrs-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #dee2e6;
	color: #666;
}

.mrs-table tbody tr:hover {
	background: #f8f9fa;
}

.mrs-table-total {
	background: #f8f9fa;
	font-weight: 600;
}

.mrs-table-total th {
	color: #dc3232;
	font-size: 16px;
}

.mrs-table-sm th,
.mrs-table-sm td {
	padding: 8px 12px;
}

/* ===== Badge ===== */
.mrs-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mrs-badge-blue {
	background: #e5f5fa;
	color: #0073aa;
}

.mrs-badge-green {
	background: #d4edda;
	color: #28a745;
}

.mrs-badge-yellow {
	background: #fff3cd;
	color: #856404;
}

.mrs-badge-red {
	background: #f8d7da;
	color: #dc3545;
}

/* ===== Grid ===== */
.mrs-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
	gap: 20px;
}

/* ===== Empty State ===== */
.mrs-empty-state {
	text-align: center;
	color: #999;
	padding: 40px 20px;
	font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.mrs-partner-login-box {
		padding: 30px 20px;
	}

	.mrs-dashboard-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.mrs-stats-grid {
		grid-template-columns: 1fr;
	}

	.mrs-info-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.mrs-input-group {
		flex-direction: column;
	}

	.mrs-grid-2 {
		grid-template-columns: 1fr;
	}

	.mrs-stat-card {
		padding: 20px;
	}

	.mrs-stat-value {
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.mrs-partner-dashboard-container,
	.mrs-partner-login-container {
		padding: 10px;
	}

	.mrs-card {
		padding: 16px;
	}

	.mrs-dashboard-header h2 {
		font-size: 24px;
	}

	.mrs-table {
		font-size: 12px;
	}

	.mrs-table th,
	.mrs-table td {
		padding: 8px;
	}
}
