/* Pro Subscription Manager - Frontend Styles */

/* Pricing Table Styles */
.psm-pricing-table {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap;
	margin: 40px 0;
}

.psm-pricing-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(4, 53, 119, 0.1);
	padding: 32px 24px;
	min-width: 280px;
	max-width: 340px;
	margin-bottom: 20px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.psm-pricing-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(4, 53, 119, 0.15);
}

.psm-pricing-card h3 {
	font-size: 24px;
	color: #043577;
	margin-bottom: 12px;
}

.psm-pricing-card p {
	font-size: 16px;
	color: #333;
	margin-bottom: 8px;
}

.psm-buy-now {
	display: inline-block;
	background: #28a745;
	color: #fff;
	padding: 10px 24px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	margin-top: 16px;
	transition: background 0.2s;
}

.psm-buy-now:hover {
	background: #218838;
	color: #fff;
	text-decoration: none;
}

/* Pricing Toggle */
.psm-pricing-toggle {
	display: flex;
	justify-content: center;
	margin-bottom: 30px;
}

.psm-pricing-toggle button {
	background: #f5f7fa;
	border: 1px solid #e2e8f0;
	padding: 8px 20px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.psm-pricing-toggle button:first-child {
	border-radius: 30px 0 0 30px;
}

.psm-pricing-toggle button:last-child {
	border-radius: 0 30px 30px 0;
}

.psm-pricing-toggle button.active {
	background: #043577;
	color: white;
	border-color: #043577;
}

/* User Dashboard Styles */
.psm-user-dashboard {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	padding: 30px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
		Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.psm-dashboard-header {
	margin-bottom: 30px;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 20px;
}

.psm-dashboard-header h2 {
	font-size: 28px;
	color: #1a202c;
	margin-bottom: 8px;
	font-weight: 700;
}

.psm-dashboard-intro {
	color: #4a5568;
	font-size: 16px;
	margin-bottom: 0;
}

/* Tabs Navigation */
.psm-dashboard-tabs {
	margin-top: 30px;
}

.psm-tab-nav {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
	border-bottom: 2px solid #e5e7eb;
}

.psm-tab-nav li {
	margin: 0;
	padding: 0;
}

.psm-tab-nav a {
	display: block;
	padding: 12px 20px;
	color: #4a5568;
	text-decoration: none;
	font-weight: 600;
	position: relative;
	transition: color 0.3s;
}

.psm-tab-nav a:hover {
	color: #043577;
	text-decoration: none;
}

.psm-tab-nav li.active a {
	color: #043577;
}

.psm-tab-nav li.active a:after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: #043577;
}

/* Tab Content */
.psm-tab-content {
	margin-top: 20px;
}

.psm-tab-pane {
	display: none;
}

.psm-tab-pane.active {
	display: block;
}

/* Subscription Cards */
.psm-subscription-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 20px;
}

.psm-subscription-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.psm-subscription-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 0 2px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.psm-card-header {
	padding: 16px 20px;
	background: #f9fafb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e5e7eb;
}

.psm-card-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1a202c;
}

.psm-card-header.psm-status-active {
	background: #ebf8ff;
	border-bottom: 1px solid #bee3f8;
}

.psm-card-header.psm-status-paused {
	background: #fefcbf;
	border-bottom: 1px solid #fbd38d;
}

.psm-card-header.psm-status-cancelled,
.psm-card-header.psm-status-expired {
	background: #fed7d7;
	border-bottom: 1px solid #feb2b2;
}

.psm-status {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.psm-status-active .psm-status {
	background: #3182ce;
	color: white;
}

.psm-status-paused .psm-status {
	background: #d69e2e;
	color: white;
}

.psm-status-cancelled .psm-status,
.psm-status-expired .psm-status {
	background: #e53e3e;
	color: white;
}

.psm-card-body {
	padding: 20px;
}

.psm-card-details {
	margin-bottom: 20px;
}

.psm-detail-row {
	display: flex;
	margin-bottom: 10px;
	font-size: 14px;
	align-items: center;
}

.psm-label {
	font-weight: 600;
	color: #4a5568;
	width: 110px;
	flex-shrink: 0;
}

.psm-value {
	color: #1a202c;
}

/* Subscription Actions */
.psm-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #e5e7eb;
}

.psm-button {
	display: inline-block;
	padding: 8px 16px;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #4a5568;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s;
}

.psm-button:hover {
	background: #edf2f7;
	color: #2d3748;
	text-decoration: none;
}

.psm-button-primary {
	background: #3182ce;
	border-color: #2b6cb0;
	color: white;
}

.psm-button-primary:hover {
	background: #2b6cb0;
	color: white;
}

.psm-button-pause {
	background: #f7fafc;
	border-color: #e2e8f0;
	color: #4a5568;
}

.psm-button-cancel {
	background: #fff5f5;
	border-color: #feb2b2;
	color: #e53e3e;
}

.psm-button-cancel:hover {
	background: #fed7d7;
	color: #c53030;
}

.psm-button-resume {
	background: #ebf8ff;
	border-color: #bee3f8;
	color: #3182ce;
}

.psm-button-resume:hover {
	background: #bee3f8;
	color: #2c5282;
}

.psm-button-renew {
	background: #f0fff4;
	border-color: #c6f6d5;
	color: #38a169;
}

.psm-button-renew:hover {
	background: #c6f6d5;
	color: #2f855a;
}

.psm-button-small {
	padding: 4px 10px;
	font-size: 12px;
}

/* Subscription Details */
.psm-subscription-details {
	padding: 0;
	border-top: 1px solid #e5e7eb;
	overflow: hidden;
}

.psm-details-inner {
	padding: 20px;
	background: #f9fafb;
}

.psm-details-inner h4 {
	font-size: 16px;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: 15px;
	color: #2d3748;
}

/* Subscription Logs */
.psm-subscription-logs {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: white;
}

.psm-log-entry {
	padding: 12px 15px;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	font-size: 13px;
}

.psm-log-entry:last-child {
	border-bottom: none;
}

.psm-log-date {
	color: #718096;
	font-size: 12px;
	margin-bottom: 4px;
}

.psm-log-event {
	color: #2d3748;
}

.psm-log-notes {
	margin-left: 5px;
	color: #4a5568;
}

/* Billing Table */
.psm-billing-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}

.psm-billing-table th,
.psm-billing-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.psm-billing-table th {
	background: #f9fafb;
	font-weight: 600;
	color: #4a5568;
	font-size: 14px;
}

.psm-billing-table tr:last-child td {
	border-bottom: none;
}

.psm-order-status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 500;
}

.psm-order-completed {
	background: #c6f6d5;
	color: #2f855a;
}

.psm-order-processing {
	background: #bee3f8;
	color: #2c5282;
}

.psm-order-on-hold {
	background: #fefcbf;
	color: #975a16;
}

.psm-order-failed {
	background: #fed7d7;
	color: #c53030;
}

/* Payment Methods */
.psm-payment-methods {
	margin-top: 20px;
}

.psm-payment-method-type {
	margin-bottom: 25px;
}

.psm-payment-method-type h4 {
	font-size: 16px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 10px;
}

.psm-payment-method {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 10px;
}

.psm-payment-details {
	display: flex;
	align-items: center;
	gap: 10px;
}

.psm-card-brand {
	font-weight: 600;
	color: #2d3748;
}

.psm-card-last4 {
	color: #4a5568;
}

.psm-card-expiry {
	color: #718096;
	font-size: 13px;
}

/* Empty States */
.psm-no-subscriptions,
.psm-no-history,
.psm-no-payment-methods,
.psm-no-logs {
	color: #718096;
	text-align: center;
	padding: 30px 0;
}

.psm-empty-state {
	text-align: center;
	padding: 40px 20px;
}

.psm-empty-icon {
	display: flex;
	justify-content: center;
	margin-bottom: 20px;
	color: #a0aec0;
}

.psm-empty-state h3 {
	font-size: 20px;
	color: #2d3748;
	margin-bottom: 10px;
}

.psm-empty-state p {
	color: #718096;
	margin-bottom: 20px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

/* Login Required */
.psm-login-required {
	text-align: center;
	padding: 50px 20px;
}

.psm-login-message h2 {
	font-size: 24px;
	color: #2d3748;
	margin-bottom: 15px;
}

.psm-login-message p {
	color: #718096;
	margin-bottom: 20px;
}

/* Confirmation Dialog */
.psm-confirmation-dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.psm-dialog-content {
	background: white;
	border-radius: 10px;
	padding: 25px;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.psm-dialog-content h3 {
	margin-top: 0;
	font-size: 18px;
	color: #2d3748;
}

.psm-dialog-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

/* Notifications */
.psm-notification {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 15px 20px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-width: 300px;
	max-width: 450px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 9999;
	transform: translateY(100px);
	opacity: 0;
	transition: transform 0.3s, opacity 0.3s;
}

.psm-notification-show {
	transform: translateY(0);
	opacity: 1;
}

.psm-notification-success {
	background: #c6f6d5;
	border-left: 4px solid #38a169;
	color: #2f855a;
}

.psm-notification-error {
	background: #fed7d7;
	border-left: 4px solid #e53e3e;
	color: #c53030;
}

.psm-notification-message {
	flex: 1;
	padding-right: 10px;
}

.psm-notification-close {
	background: none;
	border: none;
	color: inherit;
	font-size: 18px;
	cursor: pointer;
	padding: 0;
	opacity: 0.7;
}

.psm-notification-close:hover {
	opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.psm-subscription-cards {
		grid-template-columns: 1fr;
	}

	.psm-tab-nav {
		flex-wrap: wrap;
	}

	.psm-tab-nav a {
		padding: 10px 15px;
	}

	.psm-billing-table th,
	.psm-billing-table td {
		padding: 10px;
	}

	.psm-user-dashboard {
		padding: 20px 15px;
	}
}
