/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.login-page {
    background: linear-gradient(135deg, #1a5276, #3498db);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 5px;
}
 
.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.5rem 1rem;
}

.sidebar .nav-link.active {
    color: #007bff;
}

.sidebar .nav-link:hover {
    color: #0056b3;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Main content */
main {
    padding-top: 1.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

/* Tables */
.table {
    background-color: white;
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
}

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
    padding: 10px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    main {
        padding-top: 1rem;
    }
}

/* Dashboard cards */
.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Certificate preview */
.certificate-preview {
    border: 2px dashed #ccc;
    padding: 20px;
    background-color: #f9f9f9;
    min-height: 300px;
}

/* QR code scanner */
#qrScanner {
    background-color: #000;
    border-radius: 5px;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-pending {
    background-color: #ffc107;
}

.status-ongoing {
    background-color: #17a2b8;
}

.status-completed {
    background-color: #28a745;
}

.status-failed {
    background-color: #dc3545;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Your custom overrides */
.alert-danger {
    text-align: center; 
}
.alert-success {
    text-align: center; 
}
.alert {
    width: 100%;   /* span full width */
    margin: 0;     /* remove side margins */
    border-radius: 0; /* optional: make it full-width banner */
}



.alert small {
    line-height: 1.4;
    font-size: 0.9rem;
}

.badge {
    font-size: 0.85rem;
}

 