body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.card {
    border-radius: 10px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.table th {
    background-color: #f8f9fa;
}

.breadcrumb {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 15px;
}

.alert {
    border-radius: 5px;
}

/* QR code styling */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}
/* Visitor details modal styles */
/* Add to your style.css */
.modal-qr-code {
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.modal-visitor-name {
    color: #0d6efd;
    margin-bottom: 20px;
}

.check-in-time {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}
/* Visitor management styles */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

@media print {
    body * {
        visibility: hidden;
    }
    .modal-body, .modal-body * {
        visibility: visible;
    }
    .modal-body {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print, .modal-footer {
        display: none !important;
    }
}
/* Add to your style.css */
.check-in-btn {
    transition: all 0.3s ease;
}

.check-in-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.check-in-btn.loading {
    position: relative;
    pointer-events: none;
}

.check-in-btn.loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AJAX loading styles */
.qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Modal transition */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}