/* Negroni Coins Frontend Styles */

/* My Account Styles */
.woocommerce-my-account-navigation-link--negroni-coins a::before,
.woocommerce-my-account-navigation-link--negroni-coins-history a::before,
.woocommerce-my-account-navigation-link--negroni-coins-receipts a::before {
	content: "\f153";
	font-family: dashicons;
	margin-right: 5px;
}

/* Negroni Coins Dashboard */
.negroni-coins-dashboard {
	padding: 20px 0;
}

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

.stat-box {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-box h4 {
	margin: 0 0 10px;
	color: #666;
	font-size: 14px;
	text-transform: uppercase;
}

.stat-box .stat-number {
	font-size: 2em;
	font-weight: 700;
	color: #c80f2f;
	margin: 0;
}

/* Upload Form */
.upload-form {
	background: #f5f5f5;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
}

.upload-zone {
	border: 2px dashed #ddd;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.dragover {
	border-color: #c80f2f;
	background: #fafafa;
}

.upload-zone svg {
	width: 48px;
	height: 48px;
	margin-bottom: 10px;
	color: #999;
}

/* Receipt Status Badges */
.receipt-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.receipt-status.pending {
	background: #f0ad4e;
	color: #fff;
}

.receipt-status.approved {
	background: #5cb85c;
	color: #fff;
}

.receipt-status.rejected {
	background: #d9534f;
	color: #fff;
}

.receipt-status.expired {
	background: #777;
	color: #fff;
}

/* Transaction List */
.transaction-list {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transaction-item {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.transaction-item:last-child {
	border-bottom: none;
}

.transaction-amount.positive {
	color: #5cb85c;
	font-weight: 700;
}

.transaction-amount.negative {
	color: #d9534f;
	font-weight: 700;
}

/* Payment Gateway Styles */
.negroni-coins-payment-fields {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin: 10px 0;
}

.coin-balance-display {
	background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
	color: #fff;
	padding: 15px 20px;
	border-radius: 8px;
	text-align: center;
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {

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

	.transaction-item {
		flex-direction: column;
		text-align: center;
	}

	.transaction-amount {
		margin-top: 10px;
	}
}

/* Notifications */
.negroni-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	gap: 10px;
	transform: translateX(400px);
	transition: transform 0.3s ease;
	z-index: 99999;
	max-width: 400px;
}

.negroni-notification.show {
	transform: translateX(0);
}

.negroni-notification-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

.negroni-notification-success .negroni-notification-icon {
	background: #4caf50;
	color: #fff;
}

.negroni-notification-error .negroni-notification-icon {
	background: #f44336;
	color: #fff;
}

.negroni-notification-message {
	flex: 1;
	color: #333;
}

.negroni-notification-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.negroni-notification-close:hover {
	color: #333;
}

/* Modal */
.negroni-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.negroni-modal-overlay.show {
	opacity: 1;
}

.negroni-modal {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	max-width: 500px;
	width: 90%;
	text-align: center;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.negroni-modal-overlay.show .negroni-modal {
	transform: scale(1);
}

.negroni-modal-icon {
	width: 80px;
	height: 80px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	color: #fff;
}

.negroni-modal-icon.success {
	background: #4caf50;
}

.negroni-modal h2 {
	margin: 0 0 15px;
	color: #333;
	font-size: 24px;
}

.negroni-modal p {
	color: #666;
	margin: 0 0 30px;
	line-height: 1.5;
}

.negroni-modal-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
}

.negroni-modal-buttons .button {
	margin: 0;
	padding: 12px 24px;
	font-size: 16px;
}

/* Upload zone improvements */
.upload-zone.has-file {
	border-style: solid;
	border-color: #4caf50;
	background: #f0f8f0;
}

.upload-zone .file-name {
	font-weight: 700;
	color: #4caf50;
}

/* Improved form layout for desktop */
@media (min-width: 768px) {

	.upload-form-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.upload-form-grid .full-width {
		grid-column: 1 / -1;
	}

	.upload-form-grid .form-row {
		margin-bottom: 0;
	}
}

@media (max-width: 600px) {

	.negroni-modal {
		padding: 30px 20px;
	}

	.negroni-modal-buttons {
		flex-direction: column;
		width: 100%;
	}

	.negroni-modal-buttons .button {
		width: 100%;
	}

	.negroni-notification {
		right: 10px;
		left: 10px;
		max-width: none;
	}
}
