/* Switcher Machine Custom Styles */

/* Mobile-first touch targets */
.btn-lg {
    min-height: 48px;
}

.form-control-lg,
.form-select-lg {
    min-height: 48px;
}

/* Smooth transitions */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Badge improvements */
.badge {
    font-weight: 500;
}

/* List group item hover */
.list-group-item-action:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="dark"] .list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Bottom nav spacing for mobile */
@media (max-width: 991.98px) {
    main {
        padding-bottom: 80px !important;
    }
}

/* Table improvements */
.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Form label styling */
.form-label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
}

/* Quick capture radio buttons */
.btn-check:checked + .btn-outline-secondary,
.btn-check:checked + .btn-outline-danger,
.btn-check:checked + .btn-outline-warning,
.btn-check:checked + .btn-outline-info {
    color: #fff;
}

.btn-check:checked + .btn-outline-secondary {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
}

.btn-check:checked + .btn-outline-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: #000;
}

/* Card header improvements */
.card-header {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

/* Status badge colors */
.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

[data-bs-theme="dark"] .bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.2) !important;
}

[data-bs-theme="dark"] .bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.2) !important;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 700;
}

/* Mobile bottom nav icon styling */
.fixed-bottom .nav-link {
    padding: 0.5rem;
}

.fixed-bottom .nav-link small {
    font-size: 0.625rem;
    font-weight: 500;
}

/* Input group styling */
.input-group-text {
    border-color: var(--bs-border-color);
}

/* Alert improvements */
.alert {
    border: none;
}

/* Dropdown styling */
.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item i {
    width: 1.25rem;
}

/* Focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Scrollbar styling for webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

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