body {
	height: 100vh;
	overflow: hidden;
	background-color: #f4f6f9;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	display: flex;
	flex-direction: column;
}

/* Force placeholder colors to be visible on all forms */
textarea.form-control::-webkit-input-placeholder, 
input.form-control::-webkit-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}
textarea.form-control::-moz-placeholder, 
input.form-control::-moz-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}
textarea.form-control:-ms-input-placeholder, 
input.form-control:-ms-input-placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}
textarea.form-control::placeholder, 
input.form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

/* Round buttons consistency with main landing header */
.topBtn {
	border-radius: 0px !important;
}

/* Main Workspace Container - Spans 100% horizontal width */
.app-workspace {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin-top: 76px;
	/* Offset the fixed navbar */
	width: 100%;
}

/* Sidebar Styling - Flush to left edge on Desktop */
.sidebar-container {
	width: 280px;
	flex-shrink: 0;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	z-index: 10;
	background-color: #ffffff;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimized Sidebar State */
.sidebar-container.minimized {
	width: 80px;
}

.sidebar-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 1rem 1.5rem;
	color: #4a5568;
	text-decoration: none;
	border-left: 4px solid transparent;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s, padding 0.3s ease;
	white-space: nowrap;
	overflow: hidden;
}

.sidebar-text {
	transition: opacity 0.2s, width 0.2s;
	opacity: 1;
}

/* Hide text when minimized */
.sidebar-container.minimized .sidebar-text {
	opacity: 0;
	width: 0;
	display: none;
}

/* Center icons when minimized */
.sidebar-container.minimized .sidebar-item {
	padding: 1rem;
	justify-content: center;
}

.sidebar-container.minimized .sidebar-item i {
	margin: 0;
}

.sidebar-item:hover {
	background-color: #f8f9fa;
	color: #0d6efd;
}

.sidebar-item.active {
	background-color: #e6f2ff;
	color: #0d6efd;
	border-left-color: #0d6efd;
	font-weight: 600;
}

/* Toggle Icon Rotation */
#sidebarToggleIcon {
	transition: transform 0.3s ease;
}

.sidebar-container.minimized #sidebarToggleIcon {
	transform: rotate(180deg);
}

/* Responsive Mobile Tabs - Places menu above content on small screens */
@media (max-width : 767.98px) {
	.sidebar-container {
		width: 100%;
		border-right: 1px solid #e0e0e0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		/* Hide scrollbar Firefox */
	}

	.sidebar-container::-webkit-scrollbar {
		display: none;
		/* Hide scrollbar Chrome/Safari */
	}

	.sidebar-item {
		white-space: nowrap;
		padding: 0.75rem 1.25rem;
		border-left: none !important;
		border-bottom: 3px solid transparent;
	}

	.sidebar-item.active {
		border-bottom-color: #0d6efd !important;
	}

	/* Prevent minimization effects on mobile */
	.sidebar-container.minimized {
		width: 100%;
	}

	.sidebar-container.minimized .sidebar-text {
		display: inline;
		opacity: 1;
		width: auto;
	}

	.sidebar-container.minimized .sidebar-item {
		justify-content: flex-start;
		padding: 0.75rem 1.25rem;
	}
}

/* Content Area Styling - Solid white, flush to right edge */
.content-area-wrapper {
	flex-grow: 1;
	background-color: #ffffff;
	overflow-y: auto;
	padding: 2rem;
	position: relative;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
}

/* View Panels */
.view-panel {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

/* Card Hover Enhancements */
.demo-card {
	transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
	background: #ffffff;
	border: 1px solid #e0e0e0 !important;
}

.demo-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Footer Styling */
.app-footer {
	background-color: #2c3e50;
	/* Dark background */
	border-top: none;
	padding: 1rem 1.5rem;
	font-size: 0.85rem;
	color: #ffffff;
	/* White text */
}

.footer-icon,
.footer-link-text {
	color: #ffffff !important;
	transition: color 0.3s ease;
	font-size: 1.2rem;
	text-decoration: none;
}

.footer-link-text {
	font-size: 0.85rem;
}

.footer-icon:hover,
.footer-link-text:hover {
	color: #60a5fa !important;
	/* Light blue on hover */
}

.footer-separator {
	color: rgba(255, 255, 255, 0.4);
}

#formView .form-label {
	color: #1e293b;
	font-weight: 600;
	margin-bottom: 0.15rem;
	font-size: 0.8rem;
}

#formView .form-control,
#formView .form-select {
	font-size: 0.85rem;
	/* Light border as requested */
	border: 1px solid #cbd5e1 !important;
	border-radius: 4px;
	/* Force typed text to be black and visible */
	color: #000000 !important;
	background-color: #ffffff !important;
}

/* Explicitly sync heights of single-line inputs and dropdowns */
#formView input.form-control,
#formView .form-select {
	height: 30px;
	padding: 0.15rem 0.5rem;
}

#formView textarea.form-control {
	padding: 0.35rem 0.5rem;
}

/* Light placeholder text color */
#formView .form-control::placeholder {
	color: #94a3b8 !important;
	opacity: 1;
}

#formView .form-select:invalid {
	color: #94a3b8 !important;
}

#formView .form-control:focus,
#formView .form-select:focus {
	border-color: #0d6efd !important;
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* dsc-signer.js Certificate Selection Modal Styles */
#panel.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(15, 23, 42, 0.7); 
	backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
}

#panel.modal:not(.d-none) {
	display: flex !important;
}

#panel .well.container {
	background: #ffffff;
	padding: 2.5rem;
	border-radius: 20px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	width: 95%;
	max-width: 650px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	border: none;
	margin: 0 auto;
}

#panel .jumbotron {
	background: none;
	padding: 0;
	margin-bottom: 2rem;
	color: #0f172a;
	font-weight: 800;
	font-size: 1.75rem;
	border-bottom: 2px solid #f1f5f9;
	padding-bottom: 1.25rem;
	text-align: center;
}

#panel .table {
	margin-bottom: 2rem;
	border: 1px solid #e2e8f0;
	font-size: 0.85rem;
	width: 100% !important;
	background: #f8fafc;
	border-radius: 12px;
	table-layout: fixed; 
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

#panel .table td {
	padding: 0.75rem 1rem;
	vertical-align: middle;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	word-break: break-word; 
	white-space: normal;
	line-height: 1.4;
}


#panel .table td:first-child {
	font-weight: 600;
	color: #64748b;
	width: 120px;
}

#panel .btn-success {
	background-color: #10b981;
	border: none;
	color: white;
	padding: 1rem 2rem;
	border-radius: 12px;
	font-weight: 700;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	width: 100%;
	display: block;
	margin-bottom: 0;
	box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

#panel .btn-success:hover {
	background-color: #059669;
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

#panel .btn-default {
	background-color: #f1f5f9;
	border: none;
	color: #64748b;
	border-radius: 10px;
	padding: 0.6rem 1.2rem;
	font-size: 0.875rem;
	font-weight: 600;
	transition: all 0.2s;
}

#panel .btn-default:hover {
	background-color: #e2e8f0;
	color: #1e293b;
}

#panel > button.btn-default {
    position: absolute !important;
    right: 30px !important;
    top: 30px !important;
    margin: 0 !important;
    z-index: 10001 !important;
}

#mainContent {
    display: block !important; 
}
#formContainer {
    display: none !important;
}


/* nicdsign-download styles */
        .download-card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: default;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            overflow: hidden;
            background: #ffffff;
        }
        .download-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
            border-color: #cbd5e1;
        }
        .download-icon-wrapper {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem auto;
            background-color: #f1f5f9;
            transition: background-color 0.3s;
        }
        .download-card:hover .download-icon-wrapper {
            background-color: #e6f2ff;
        }
        .download-card:hover .download-icon-wrapper i {
            color: #0d6efd !important;
        }
        
        .version-badge {
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            background-color: #f8f9fa;
            color: #64748b;
            border: 1px solid #e2e8f0;
        }

        /* Previous Versions List Styling */
        .version-list { 
            font-size: 1rem; 
            line-height: 1.6;
            padding-left: 1.5rem;
        }
        .version-list li {
            margin-bottom: 0.3rem;
        }
        .version-list a {
            color: #0d6efd;
            text-decoration: none;
        }
        .version-list a:hover { 
            text-decoration: underline; 
        }
        
        /* Square Pagination Styling (Strictly Blue) */
        .custom-pagination { gap: 0; }
        .custom-pagination .page-link {
            color: #0d6efd;
            border: 1px solid #dee2e6;
            padding: 0.45rem 0.8rem;
            border-radius: 0 !important;
            margin-left: -1px;
        }
        .custom-pagination .page-item:first-child .page-link { margin-left: 0; }
        .custom-pagination .page-item.active .page-link {
            background-color: #0d6efd !important;
            border-color: #0d6efd !important;
            color: #ffffff;
        }
        .custom-pagination .page-link:hover {
            background-color: #e6f2ff;
            color: #0a58ca;
        }
        
        .custom-pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* ======================================================
   CSP-COMPLIANCE: Inline style= replacements
   These classes exactly preserve the original design
   ====================================================== */

/* Navbar shadow/z-index (was: style="box-shadow: 0 2px 4px rgba(0,0,0,0.02); z-index: 1050;") */
.demo-navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    z-index: 1050;
}

/* Dashboard wrapper gap + background (was: style="gap: 15px; background-color: #f4f6f9;") */
.demo-dashboard-wrapper {
    gap: 15px;
    background-color: #f4f6f9;
}

/* Right-side wrapper gap (was: style="gap: 15px;") */
.demo-right-wrapper {
    gap: 15px;
}

/* Sidebar toggle button size (was: style="width: 32px; height: 32px;") */
.sidebar-toggle-btn {
    width: 32px;
    height: 32px;
}

/* View-panel heading colour (was: style="color: #0b5ed7;") */
.view-panel-heading {
    color: #0b5ed7;
}

/* Demo card icon size (was: style="font-size: 3.5rem;") */
.demo-card-icon {
    font-size: 3.5rem;
}

/* Panel hidden (was: style="display: none;") — replaced with .d-none, but keep modal logic intact */
#panel.d-none {
    display: none !important;
}
#panel.modal:not(.d-none) {
    display: flex !important;
}

/* ======================================================
   Premium Floating Top-Center Alert for Batch Completed
   ====================================================== */
.top-center-alert {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

/* Ensure that when d-flex is present, display is flex */
.top-center-alert.d-flex {
    display: flex !important;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -32px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.top-center-alert .alert-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-center-alert .alert-icon-container svg {
    width: 24px !important;
    height: 24px !important;
}

.top-center-alert .alert-message-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.top-center-alert .alert-close-btn {
    background: none;
    border: none;
    padding: 8px;
    margin: -8px -4px -8px 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.top-center-alert .alert-close-btn svg {
    width: 14px !important;
    height: 14px !important;
}

.top-center-alert .alert-close-btn:hover {
    background-color: #f1f5f9;
}

.top-center-alert .alert-close-btn svg stroke {
    transition: stroke 0.2s;
}

.top-center-alert .alert-close-btn:hover svg stroke {
    stroke: #334155;
}