body,
h1, h2, h3, h4, h5, h6,
p,
a,
span,
div,
label,
input,
button,
select,
textarea,
table,
th,
td,
ul,
li {
	font-family: 'Roboto', sans-serif !important;
	font-weight: 400 !important;
}

body {
	background-color: #f8f9fa;
	font-family: 'Roboto', sans-serif;
	color: #495057;
	padding-bottom: 80px;
}

.navbar-brand {
	font-weight: 600 !important;
	color: #343a40 !important;
	display: flex;
	align-items: center;
}

.navbar.fixed-bottom .navbar-logo {
	height: 30px !important;
	width: auto !important;
	margin-right: 10px;
}

.card {
	border: 1px solid #e9ecef;
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.status-badge {
	font-size: 0.8rem;
	font-weight: 600;
	vertical-align: middle;
}

#stop-card,
#process-status-card {
	display: none;
}

.info-box {
	background-color: #e9ecef;
	border-radius: 0.25rem;
	padding: 10px;
	font-size: 0.8em;
	max-height: 150px;
	overflow-y: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

td {
	word-break: break-all;
}

.navbar.fixed-bottom .navbar-brand {
    color: #343a40 !important; /* Ensure navbar brand is dark */
}

.navbar.fixed-bottom .nav-link {
    color: #343a40 !important; /* Ensure black text for nav links in bottom navbar */
}

.navbar.fixed-bottom .nav-link:hover,
.navbar.fixed-bottom .nav-link:focus,
.navbar.fixed-bottom .nav-link.active {
    color: #000000 !important; /* Ensure black on hover/focus/active */
    background-color: transparent !important; /* Remove background highlight */
    box-shadow: none !important; /* Remove any shadow highlight */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Enhanced checkbox and radio button visibility for kiosk displays */
.form-check-input {
    width: 1.5em !important;
    height: 1.5em !important;
    border: 2px solid #007bff !important;
    border-radius: 0.375rem !important;
    background-color: #ffffff !important;
    margin-top: 0.125em !important;
}

.form-check-input:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
    background-size: 1em !important;
}

.form-check-input:focus {
    border-color: #007bff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25) !important;
}

.form-check-input:hover {
    border-color: #0056b3 !important;
}

/* Enhanced radio button visibility */
.form-check-input[type="radio"] {
    border-radius: 50% !important;
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

/* Larger clickable area for form labels in kiosk mode */
.form-check-label {
    font-size: 1.1em !important;
    font-weight: 500 !important;
    color: #333 !important;
    cursor: pointer !important;
    padding-left: 0.5em !important;
    line-height: 1.5 !important;
}

/* Enhanced form check container */
.form-check {
    margin-bottom: 1rem !important;
    padding: 0.75rem !important;
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.form-check:hover {
    background-color: #e9ecef !important;
    border-color: #007bff !important;
}

/* Actions column improvements for mobile */
.actions-column {
    min-width: 80px;
    max-width: 120px;
    white-space: nowrap;
}

.actions-column .d-flex {
    width: 100%;
}

.actions-column .btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.actions-column .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mobile/tablet specific improvements */
@media (max-width: 768px) {
    /* Even larger checkboxes on mobile/budget displays */
    .form-check-input {
        width: 2em !important;
        height: 2em !important;
        border-width: 3px !important;
    }
    
    .form-check-label {
        font-size: 1.3em !important;
    }
    
    .form-check {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Actions column mobile optimizations */
    .actions-column {
        min-width: 60px;
        max-width: 70px;
    }
    
    .actions-column .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide text on mobile, show icons only */
    .actions-column .d-md-none {
        font-size: 0.875rem;
    }
    
    /* Ensure buttons stack nicely on mobile */
    .actions-column .d-flex {
        gap: 0.25rem !important;
    }
    
    /* Table responsive improvements */
    .table-responsive {
        border: none;
        box-shadow: none;
    }
    
    .table th, .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    .table th {
        background-color: #f8f9fa;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
    }
}

/* Clean photo upload modal */
.upload-area .form-control {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fafafa;
    transition: all 0.2s ease;
}

.upload-area .form-control:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.upload-area .form-control:focus {
    border-color: #6c757d;
    box-shadow: none;
    background-color: #fff;
}

#photoUploadModal .modal-content {
    border-radius: 12px;
}

#photoUploadModal .progress-bar {
    transition: width 0.3s ease;
}