:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --danger: #f72585;
    --warning: #f8961e;
    --info: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --admin-bg: #f0f7ff;
    --staff-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark), var(--gray));
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 28px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-role {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Navigation */
nav {
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.nav-container {
    display: flex;
    gap: 20px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

.nav-items {
    display: flex;
    gap: 20px;
    width: 100%;
}

.nav-item {
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-items {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-items.show {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }
}

.nav-item.active, .nav-item:hover {
    background-color: var(--primary);
    color: white;
}

.badge {
    font-size: 0.5rem;
    padding: 0.3em 0.5em;
}


.pulse-badge {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.custom-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.6rem;
    padding: 0.25em 0.45em;
    line-height: 1;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

/* Page Title Styles */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: var(--light);
    padding: 1rem;
    font-weight: 600;
    color: var(--gray);
    text-align: left;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.status-success {
    background: rgba(76, 201, 240, 0.1);
    color: var(--success);
}

.status-danger {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger);
}

.status-warning {
    background: rgba(248, 150, 30, 0.1);
    color: var(--warning);
}

/* Footer Styles */
footer {
    background: var(--dark);
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        flex: 1 1 auto;
        text-align: center;
        min-width: 120px;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .table-container {
        overflow-x: auto;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .user-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-item {
        min-width: 100%;
    }

    .page-title {
        font-size: 20px;
    }
}

/* SCANNER */

    #scanner::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 10%;
        width: 80%;
        height: 2px;
        background: rgba(0, 255, 0, 0.5);
        transform: translateY(-50%);
        pointer-events: none;
    }
    #scanner {
        position: relative;
        overflow: hidden;
    }

/* Card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

/* Table styles */
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,123,255,0.05);
}

/* Form styles */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}
a.btn {
    text-decoration: none;
}

.btn-success {
    background-color: var(--success);
    color: white;
    border: none;
}
.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: white;
}

.btn-info {
    background-color: var(--info);
    color: white;
}


.btn-success:hover {
    background-color: #38bde5; /* a slightly darker shade for hover */
}
.btn-success:hover {
    background-color: #38bde5; /* a slightly darker shade for hover */
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Dashboard widgets */
.stat-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Scanner viewport */
#interactive.viewport {
    position: relative;
    width: 100%;
    height: 300px;
}

#interactive.viewport > canvas, #interactive.viewport > video {
    max-width: 100%;
    width: 100%;
}

/* Alert customization */
.alert {
    border-radius: 0.25rem;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Badge customization */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

html, body {
    height: 100%;
    margin: 0;
}

#wrapper {
    display: flex;
    flex-direction: row;
}

/* Sidebar */
#sidebar-wrapper {
    width: 250px;
    min-height: 100vh;
    position: fixed;
    background-color: #343a40;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

/* Content spacing */
#page-content-wrapper {
    margin-left: 250px;
    width: 100%;
    padding: 20px;
}

/* Optional hover effect */
.list-group-item:hover {
    background-color: #495057;
    color: #fff;
}


