:root { --sidebar-width: 250px; }
body { background-color: #f8f9fa; }
#sidebar, #subsidebar {
    height: 100vh;
    position: fixed;
    z-index: 1000 !important; 
    left: 0;
    background: #212529;
    width: var(--sidebar-width);
}
#main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    width: calc(100% - var(--sidebar-width));
}

.sidebar-logo {
    width: 50px;          /* Adjust size as needed */
    height: 50px;
    object-fit: contain;
    border-radius: 12px;  /* Matches the modern rounded look */
    
    /* TRICK: If your image has a white background and your sidebar is dark, 
       this line helps 'hide' the white background: */
    mix-blend-mode: lighten; 
    
    transition: transform 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.1); /* Subtle interactive effect */
}

.sidebar-header h5 {
    color: #00d2ff; /* Teal/Blue color from your logo */
    text-transform: uppercase;
}
/* The dark background that covers everything */

.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}
.nav-link {
    color: #adb5bd;
    padding: 10px 15px;
    display: block;
    text-decoration: none;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    background-color: #0d6efd !important; /* Bootstrap Primary Blue */
    color: white !important;
}

.top-navbar {
	background: white; 
	border-bottom: 1px solid #dee2e6;
	padding: 10px 20px;
}
.stat-card { 
	border-radius: 10px;
	border: none;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
body.login-page { background: #f4f7f6; display: flex; align-items: center; height: 100vh; }
.login-card { width: 100%; max-width: 400px; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); background: white; margin: auto; }

@media print {
    #sidebar, .btn, .card-header, .breadcrumb, form, .card-footer, .pagination { display: none !important; }
    #main-content {z-index: 1; margin-left: 0 !important; padding: 0 !important; width: 100% !important; }
    .card { border: none !important; box-shadow: none !important; }
    .no-print { display: none !important; }
}


.qr-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}

/* 2. Makes the input take up the remaining space */
.input-stack { flex: 1; }

/* 3. The hidden box that appears after generation */
#qr-result {
    display: none !important;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

#previewContainer {
    width: 160px !important;
    height: 160px !important;
    min-width: 160px !important;
    min-height: 160px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    margin: 0 auto;
    position: relative;
}

#imagePreview {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: none; /* JS will change this to block */
}

/* Move this to the bottom of your CSS file to ensure it overrides everything */
.hidden-preview {
    display: none !important;
}
/* 4. The QR image size */
#qrImage {
    width: 150px;
    height: 150px;
    border-radius: 0.25rem;
}
