/* Custom styles for the application */

/* PWA Estilos */
:root {
    --pwa-primary: #0d6efd;
    --pwa-secondary: #6c757d;
    --pwa-background: #212529;
    --pwa-text: #f8f9fa;
}

/* Estilos para tela inteira e comportamento como app */
html, body {
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-user-select: none;
    user-select: none;
}

/* Botão de instalação PWA */
.pwa-install-btn {
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

.footer {
    margin-top: auto;
}

/* Fix for checkbox label contrast */
.form-check-label {
    color: var(--bs-body-color);
}

/* Checkbox styling adjustments */
.form-check-input {
    background-color: var(--bs-dark-bg-subtle);
    border-color: var(--bs-border-color);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Card styling */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    font-weight: 500;
}

/* Progress bar colors */
.progress-bar {
    transition: width 0.6s ease;
}

/* Image container */
.analyzed-image-container {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background-color: var(--bs-dark-bg-subtle);
}

/* Improve form elements */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Add subtle animation to alert dismissal */
.alert {
    transition: opacity 0.5s ease-out;
}

/* Navbar styling */
.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Custom button focus styles */
.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
}

/* Measurement label styling */
.measurement-label {
    font-weight: 500;
    color: var(--bs-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1.25rem;
    }
}
