/* Custom styles for SnackBox Badge Management */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border-radius: 10px;
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.scan-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.scan-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.scan-item.authorized {
    border-left: 4px solid #28a745;
}

.scan-item.unauthorized {
    border-left: 4px solid #ffc107;
}

.scan-item .badge-id {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
}

.scan-item .timestamp {
    font-size: 0.85rem;
    color: #6c757d;
}

.scan-item .username {
    font-weight: 600;
    color: #28a745;
}

.badge-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
}

.badge-item .badge-id {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #495057;
}

.badge-item .username {
    color: #28a745;
    font-weight: 600;
}

.authorize-btn {
    transition: all 0.3s ease;
}

.authorize-btn:hover {
    transform: scale(1.05);
}

.stat-box {
    padding: 15px;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

#connectionStatus {
    font-size: 0.9rem;
    padding: 8px 12px;
}

#connectionStatus.connected {
    background-color: #28a745 !important;
}

#connectionStatus.disconnected {
    background-color: #dc3545 !important;
}

/* Animation for new items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.new-item {
    animation: slideIn 0.5s ease;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

