/**
 * Frontend Styles
 * 
 * @package WC_Affiliate_Distributor_Tracking
 * @version 1.0.0
 */

/* Affiliate Dashboard */
.wcad-affiliate-dashboard {
	padding: 20px 0;
}

.wcad-affiliate-dashboard h2 {
	margin-bottom: 20px;
	font-size: 28px;
}

.wcad-affiliate-dashboard h3 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 22px;
}

/* Affiliate Info */
.wcad-affiliate-info {
	background-color: #f7f7f7;
	padding: 15px;
	border-radius: 5px;
	margin-bottom: 20px;
}

.wcad-affiliate-info p {
	margin: 8px 0;
}

.wcad-affiliate-info code {
	background-color: #fff;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
}

/* Stats Grid */
.wcad-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.wcad-stat-box {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
	transition: box-shadow 0.3s ease;
}

.wcad-stat-box:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wcad-stat-box h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
	color: #666;
	font-weight: normal;
}

.wcad-stat-value {
	font-size: 24px;
	font-weight: bold;
	color: #0073aa;
	margin: 0;
}

/* Actions */
.wcad-actions,
.wcad-export-actions {
	margin: 20px 0;
}

/* Tables */
.wcad-orders-table,
.wcad-payouts-table,
.wcad-customers-table {
	width: 100%;
	margin-top: 15px;
	border-collapse: collapse;
}

.wcad-orders-table th,
.wcad-payouts-table th,
.wcad-customers-table th {
	text-align: left;
	padding: 12px;
	background-color: #f7f7f7;
	border-bottom: 2px solid #ddd;
	font-weight: 600;
}

.wcad-orders-table td,
.wcad-payouts-table td,
.wcad-customers-table td {
	padding: 12px;
	border-bottom: 1px solid #ddd;
}

.wcad-orders-table tbody tr:hover,
.wcad-payouts-table tbody tr:hover,
.wcad-customers-table tbody tr:hover {
	background-color: #f9f9f9;
}

/* Distributor Info */
.wcad-distributor-info,
.wcad-my-distributor {
	background-color: #f7f7f7;
	padding: 20px;
	border-radius: 5px;
	margin: 20px 0;
}

.wcad-distributor-info h2,
.wcad-my-distributor h3 {
	margin-top: 0;
	color: #0073aa;
}

.wcad-distributor-info p,
.wcad-my-distributor p {
	margin: 10px 0;
}

/* Shortcode Widgets */
.wcad-affiliate-stats-widget {
	background-color: #f7f7f7;
	padding: 15px;
	border-radius: 5px;
	margin: 15px 0;
}

.wcad-affiliate-stats-widget p {
	margin: 8px 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.wcad-stats-grid {
		grid-template-columns: 1fr;
	}
	
	.wcad-orders-table,
	.wcad-payouts-table,
	.wcad-customers-table {
		font-size: 14px;
	}
	
	.wcad-orders-table th,
	.wcad-payouts-table th,
	.wcad-customers-table th,
	.wcad-orders-table td,
	.wcad-payouts-table td,
	.wcad-customers-table td {
		padding: 8px;
	}
	
	/* Responsive table for mobile */
	.wcad-orders-table thead {
		display: none;
	}
	
	.wcad-orders-table tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 5px;
	}
	
	.wcad-orders-table td {
		display: block;
		text-align: right;
		padding: 10px;
		border-bottom: 1px solid #eee;
	}
	
	.wcad-orders-table td:before {
		content: attr(data-title);
		float: left;
		font-weight: 600;
	}
	
	.wcad-orders-table td:last-child {
		border-bottom: none;
	}
}

@media screen and (max-width: 480px) {
	.wcad-affiliate-dashboard h2 {
		font-size: 24px;
	}
	
	.wcad-affiliate-dashboard h3 {
		font-size: 20px;
	}
	
	.wcad-stat-value {
		font-size: 20px;
	}
}
