body {
	margin: 0;
	padding: 0;
	
	max-width: 1200px;
	font-family: Calibri, Verdana, Helvetica, Sans-Serif;
	font-size: 14pt;

	color: #FFFFEE;

	background: rgb(0,0,0);
	background: linear-gradient(90deg, rgba(0,0,64,1) 20%, rgba(0,0,0,1) 100%);
}

code {
	font-family: Courier-New, Courier, Monospace;
	font-size: 12pt;
	background: #222266;
}

small {
	font-size: 10pt;
}

td {
	font-family: Calibri, Verdana, Helvetica, Sans-Serif;
	font-size: 14pt;
}

a:link {
	font-weight: bold;
	text-decoration: none;
	color: #0099FF;
}

a:visited {
	font-weight: bold;
	text-decoration: none;
	color: #0099FF;
}

a:hover {
	font-weight: bold;
	text-decoration: underline;
	color: #66DDFF;
}

h1 {
	font-size: 24pt;
	font-weight: bold;
	font-style: italic;
	color: #FFFFDD;
	padding: 0px 0px 0px 5px;
}

h2 {
	font-size: 18pt;
	font-weight: bold;
	font-style: italic;
	color: #FFFFDD;
	padding: 0px 0px 0px 3px;
	border-top: 1px dotted #999999;
}

h3 {
	font-size: 16pt;
	font-weight: bold;
	font-style: italic;
	color: #FFFF99;
	padding 0px 0px 0px 3px;
/*	border-top: 1px dotted #336; */
}

blockquote.grey {
	border-radius: 8px;
	padding: 6px;
	border: 1px solid white;
	background: #404040;
}

/* Container sizing for desktop */
.portal-container {
    max-width: 1350px;
    margin: 40px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff; /* Crisp white for primary text */
}

/* License Card Structure - Medium Blue */
.license-card {
    background: #1e3656; /* Deep medium blue */
    border: 1px solid #3b5f8f; /* A lighter blue border to make it pop */
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow for dark mode depth */
    margin-bottom: 30px;
    overflow: hidden;
}

.license-header {
    background: rgba(0, 0, 0, 0.2); /* Slightly darkens the header area */
    padding: 20px;
    border-bottom: 1px solid #3b5f8f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-details h3 {
    margin: 0 0 5px 0;
    font-family: monospace;
    font-size: 1.2rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.license-meta {
    font-size: 0.9rem;
    color: #a9c2df; /* Soft ice-blue for metadata (easy on the eyes) */
    display: flex;
    gap: 20px;
}

/* Machine Rows */
.machines-container {
    padding: 0 20px 20px 20px;
}

.machine-grid-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
    padding: 15px 10px;
    font-weight: bold;
    color: #a9c2df;
    border-bottom: 2px solid #3b5f8f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.machine-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
    padding: 15px 10px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.machine-row:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Subtle highlight on hover */
}

.machine-row:last-child {
    border-bottom: none;
}

/* Dark Mode Status Badges (Glowing translucent effect) */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge.active {
    background: rgba(40, 167, 69, 0.15);
    color: #7add92;
    border: 1px solid rgba(40, 167, 69, 0.4);
}
.badge.soft {
    background: rgba(255, 193, 7, 0.15);
    color: #ffda6a;
    border: 1px solid rgba(255, 193, 7, 0.4);
}
.badge.hard {
    background: rgba(220, 53, 69, 0.15);
    color: #ff9ca6;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

/* Buttons */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: 0.2s;
}
.btn-danger { background: #d93848; color: white; }
.btn-danger:hover { background: #e84a59; }
.btn-warning { background: #f3b603; color: #111; }
.btn-warning:hover { background: #ffd13b; }
.btn-success { background: #27a343; color: white; }
.btn-success:hover { background: #33b851; }

	/* The base structure and animation (No colors here!) */
	.flash-msg {
		padding: 15px;
		border-radius: 8px;
		margin-bottom: 20px;
		overflow: hidden;
		opacity: 1;
		max-height: 100px; 
		transition: all 0.5s ease-out;
	}

	/* The Green State */
	.flash-success {
		background-color: rgba(40, 167, 69, 0.15);
		border: 1px solid rgba(40, 167, 69, 0.4);
		color: #7add92;
	}

	/* The Red State */
	.flash-error {
		background-color: rgba(220, 53, 69, 0.15);
		border: 1px solid rgba(220, 53, 69, 0.4);
		color: #ff9ca6;
	}

	/* The hiding animation */
	.flash-msg.hide {
		opacity: 0;
		max-height: 0;
		padding-top: 0;
		padding-bottom: 0;
		margin-bottom: 0;
		border-width: 0;
	}

	/* License Copy Button */
	.copy-btn {
		cursor: pointer;
		font-size: 1.1rem;
		transform 0.3s ease;
		user-select: none; /* Prevents the emoji itself from being highlighted */
	}

	.copy-btn:hover {
		transform: scale(1.15); /* Slight pop on hover */
	}

	.copy-btn:active {
		transform: scale(0.9); /* Squishes slightly when clicked */
	}

	/* Search & Filter Bar */
	.admin-toolbar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 20px;
		gap: 15px;
		flex-wrap: wrap;
	}

	.search-box {
		display: flex;
		gap: 10px;
		flex: 1;
		max-width: 450px;
	}

	.search-input {
		flex: 1;
		padding: 10px 14px;
		border-radius: 6px;
		border: 1px solid #3b5f8f;
		background: rgba(0, 0, 0, 0.25);
		color: #ffffff;
		font-size: 0.95rem;
	}

	/* Admin Table */
	.admin-table {
		width: 100%;
		border-collapse: collapse;
		background: rgba(16, 28, 48, 0.75);
		border: 1px solid #2b456b;
		border-radius: 8px;
		overflow: hidden;
	}

	.admin-table th {
		background: rgba(0, 0, 0, 0.35);
		color: #a9c2df;
		text-align: left;
		padding: 14px 16px;
		font-size: 0.9rem;
		border-bottom: 2px solid #2b456b;
		user-select: none;
	}

	.admin-table th a {
		color: #a9c2df;
		text-decoration: none;
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.admin-table th a:hover {
		color: #ffffff;
	}

	.admin-table td {
		padding: 14px 16px;
		border-bottom: 1px solid rgba(59, 95, 143, 0.3);
		color: #e0e8f5;
		vertical-align: middle;
	}

	.customer-row {
		cursor: pointer;
		transition: background-color 0.15s ease;
	}

	.customer-row:hover {
		background-color: rgba(59, 95, 143, 0.2);
	}

	/* Revoked Row Highlight (applies to main row and expanded panel) */
	.row-revoked {
		background-color: rgba(220, 53, 69, 0.18) !important;
	}

	.row-revoked:hover {
		background-color: rgba(220, 53, 69, 0.26) !important;
	}

	/* Customer Name Expiration Colors */
	.name-ok {
		color: #ffffff;
		font-weight: bold;
		font-size: 1.05rem;
	}

	.name-warning {
		color: #ff9ca6;
		font-weight: bold;
		font-size: 1.05rem;
	}

	.name-expired {
		color: #ff4444;
		font-weight: bold;
		font-size: 1.05rem;
	}

	.sub-email {
		display: block;
		color: #8da9c4;
		font-size: 0.82rem;
		margin-top: 3px;
	}
	.sub-email:hover { color: #ffffff; text-decoration: underline !important; }
	
	/* Expandable Details Row */
	.details-row {
		display: none;
		background-color: rgba(8, 15, 28, 0.65);
	}

	.details-row.open {
		display: table-row;
	}

	.details-cell {
		padding: 20px 25px !important;
		border-bottom: 2px solid #3b5f8f !important;
	}

	.license-bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 15px;
		padding-bottom: 15px;
		margin-bottom: 15px;
		border-bottom: 1px solid rgba(59, 95, 143, 0.4);
	}

	.action-group {
		display: flex;
		gap: 8px;
		flex-wrap: wrap;
	}

	.btn-action {
		background: rgba(59, 95, 143, 0.35);
		border: 1px solid #4a75b0;
		color: #ffffff;
		padding: 6px 12px;
		border-radius: 4px;
		font-size: 0.85rem;
		text-decoration: none;
		cursor: pointer;
		transition: background 0.2s;
	}

	.btn-action:hover {
		background: rgba(74, 117, 176, 0.6);
	}

	.btn-action.danger {
		background: rgba(220, 53, 69, 0.25);
		border-color: #dc3545;
		color: #ff9ca6;
	}

	.btn-action.restore {
		background: rgba(40, 167, 69, 0.25);
		border-color: #28a745;
		color: #7add92;
	}

	/* Nested Machines Table */
	.machines-subtable {
		width: 100%;
		border-collapse: collapse;
		font-size: 0.88rem;
		background: rgba(0, 0, 0, 0.25);
		border-radius: 6px;
		overflow: hidden;
	}

	.machines-subtable th {
		background: rgba(255, 255, 255, 0.05);
		color: #8da9c4;
		padding: 8px 12px;
		font-weight: 600;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.machines-subtable td {
		padding: 8px 12px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
		color: #c9d8e8;
	}

	/* Pagination */
	.pagination {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 20px;
		color: #a9c2df;
		font-size: 0.9rem;
	}

	.page-links {
		display: flex;
		gap: 6px;
	}

	.page-link {
		padding: 6px 12px;
		border-radius: 4px;
		border: 1px solid #3b5f8f;
		background: rgba(0, 0, 0, 0.2);
		color: #a9c2df;
		text-decoration: none;
	}

	.page-link.active, .page-link:hover {
		background: #3b5f8f;
		color: #ffffff;
	}

	/* Multi-license sub-row grouping */
	.customer-row.has-subrows td {
		border-bottom: 1px dashed rgba(59, 95, 143, 0.25);
	}

	.customer-row.sub-license-row td:first-child {
		padding-left: 28px;
		color: #6c88ab;
		font-size: 0.85rem;
	}

	/* Global Status Bar */
	.stats-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
		gap: 14px;
		margin-bottom: 25px;
	}

	.stat-card {
		background: rgba(16, 28, 48, 0.75);
		border: 1px solid #2b456b;
		border-radius: 8px;
		padding: 14px 18px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		text-decoration: none;
		transition: border-color 0.15s ease, background-color 0.15s ease;
	}

	a.stat-card:hover {
		border-color: #4a75b0;
		background: rgba(26, 44, 74, 0.85);
	}

	.stat-label {
		color: #8da9c4;
		font-size: 0.8rem;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		margin-bottom: 6px;
	}

	.stat-value {
		color: #ffffff;
		font-size: 1.55rem;
		font-weight: bold;
		line-height: 1.1;
	}

	.stat-sub {
		color: #8da9c4;
		font-size: 0.8rem;
		margin-top: 8px;
		display: flex;
		justify-content: space-between;
		border-top: 1px solid rgba(59, 95, 143, 0.25);
		padding-top: 6px;
	}

/* For the images on the How-To pages (that's a lower-case L) */
.inl {
	margin-left: 20px;
	border: 2px solid #446;
}
