/**
 * Public CSS for WebsitesIdea License Manager Pro Customer Portal
 */

.wilm-portal-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	max-width: 1000px;
	margin: 20px auto;
	color: #334155;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	overflow: hidden;
	border: 1px solid #f1f5f9;
}

/* Header banner */
.wilm-portal-header {
	background: linear-gradient(135deg, #5F00FF 0%, #8C2BFF 100%);
	padding: 30px 40px;
	color: #ffffff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.wilm-portal-header h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
}

.wilm-portal-header p {
	margin: 5px 0 0 0;
	font-size: 14px;
	opacity: 0.9;
}

/* Tabs */
.wilm-portal-nav {
	display: flex;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	padding: 0 20px;
}

.wilm-portal-tab-btn {
	padding: 16px 24px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s;
}

.wilm-portal-tab-btn:hover {
	color: #5F00FF;
}

.wilm-portal-tab-btn.is-active {
	color: #5F00FF;
	border-bottom-color: #5F00FF;
}

/* Body panels */
.wilm-portal-panel {
	display: none;
	padding: 30px 40px;
}

.wilm-portal-panel.is-active {
	display: block;
}

/* License cards */
.wilm-portal-license-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-bottom: 25px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
	overflow: hidden;
	transition: transform 0.2s;
}

.wilm-portal-license-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.wilm-portal-lc-header {
	padding: 15px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wilm-portal-lc-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.wilm-portal-lc-body {
	padding: 20px;
}

/* Key display container */
.wilm-portal-key-container {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
	background: #f1f5f9;
	padding: 10px 15px;
	border-radius: 6px;
}

.wilm-portal-key-value {
	font-family: monospace;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #0f172a;
	flex-grow: 1;
}

.wilm-portal-key-btn {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 12px;
	cursor: pointer;
	color: #475569;
	font-weight: 500;
	transition: all 0.2s;
}

.wilm-portal-key-btn:hover {
	border-color: #5F00FF;
	color: #5F00FF;
}

/* Grid parameters */
.wilm-portal-grid-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
	margin-bottom: 20px;
}

.wilm-portal-grid-item {
	display: flex;
	flex-direction: column;
}

.wilm-portal-grid-label {
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
	font-weight: 600;
	margin-bottom: 4px;
}

.wilm-portal-grid-val {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

/* Domains manager */
.wilm-portal-domains-section {
	border-top: 1px solid #e2e8f0;
	padding-top: 15px;
}

.wilm-portal-domains-title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #0f172a;
}

.wilm-portal-domain-list {
	list-style: none;
	padding: 0;
	margin: 0 0 15px 0;
}

.wilm-portal-domain-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 13px;
}

.wilm-portal-domain-remove {
	color: #ef4444;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.wilm-portal-domain-remove:hover {
	text-decoration: underline;
}

/* Domain Add Form */
.wilm-portal-domain-add-form {
	display: flex;
	gap: 10px;
}

.wilm-portal-domain-add-form input {
	flex-grow: 1;
	padding: 8px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 13px;
}

.wilm-portal-domain-add-form input:focus {
	outline: none;
	border-color: #5F00FF;
}

.wilm-portal-btn {
	background: linear-gradient(135deg, #5F00FF 0%, #8C2BFF 100%);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.wilm-portal-btn:hover {
	opacity: 0.95;
	box-shadow: 0 4px 10px rgba(95, 0, 255, 0.15);
}

.wilm-portal-btn.btn-secondary {
	background: #fff;
	color: #334155;
	border: 1px solid #cbd5e1;
}

.wilm-portal-btn.btn-secondary:hover {
	background: #f8fafc;
	box-shadow: none;
}

.wilm-portal-btn.btn-danger {
	background: #ef4444;
}

.wilm-portal-btn.btn-danger:hover {
	box-shadow: none;
}

.wilm-portal-btn.btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

/* General Alerts */
.wilm-portal-alert {
	padding: 12px 18px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 20px;
	line-height: 1.5;
}

.wilm-portal-alert-info {
	background: rgba(95, 0, 255, 0.05);
	color: #5F00FF;
	border: 1px solid rgba(95, 0, 255, 0.15);
}

.wilm-portal-alert-success {
	background: rgba(16, 185, 129, 0.05);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.15);
}

.wilm-portal-alert-error {
	background: rgba(239, 68, 68, 0.05);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Downloads tab table */
.wilm-portal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	text-align: left;
}

.wilm-portal-table th {
	padding: 12px 15px;
	border-bottom: 1px solid #e2e8f0;
	color: #64748b;
	font-weight: 600;
}

.wilm-portal-table td {
	padding: 15px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
}

/* Frontend license selector */
.wilm-plan-radio-card {
	background: #fff;
	border: 1px solid #cbd5e1 !important;
}
.wilm-plan-radio-card.active {
	border-color: #5F00FF !important;
	background: rgba(95, 0, 255, 0.02) !important;
	box-shadow: 0 0 0 1px #5F00FF;
}
.wilm-plan-radio-card:hover {
	border-color: #8C2BFF !important;
}

