html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

#profileImagePreview {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease;
}

    #profileImagePreview:hover {
        border-color: #0d6efd;
    }

/* Miglioramenti per la tabella work experience */
#workExperienceTable textarea {
    min-height: 60px;
    resize: vertical;
}

#workExperienceTable td {
    vertical-align: middle;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
    }

    #workExperienceTable textarea {
        min-width: 200px;
    }
}
/* Compact tabs for better responsive layout */
.nav-tabs-compact .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.nav-tabs-compact .nav-link i {
    font-size: 1.1rem;
}

/* Mobile: solo icone */
@media (max-width: 991.98px) {
    .nav-tabs-compact .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 1rem;
        text-align: center;
        min-width: 40px;
    }

    .nav-tabs-compact .nav-link i {
        display: block;
        margin: 0;
    }

    .nav-tabs-compact {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        -ms-overflow-style: auto;
    }
}

/* Tablet/Desktop: icone + testo */
@media (min-width: 992px) {
    .nav-tabs-compact .nav-link {
        padding: 0.6rem 0.9rem;
    }

    .nav-tabs-compact .nav-link i {
        margin-right: 0.4rem;
    }
}

/* Miglioramenti per i tab responsive */
@media (max-width: 767.98px) {
    .nav-tabs .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 1.1rem;
        text-align: center;
        min-width: 45px;
    }

        .nav-tabs .nav-link i {
            display: block;
            margin-bottom: 0.25rem;
        }

    /* Scrolling orizzontale se necessario */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

        .nav-tabs::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }
}

@media (min-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
    }

        .nav-tabs .nav-link i {
            margin-right: 0.5rem;
        }
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.validation-error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pdf-export-btn.generating {
    opacity: 0.7;
    pointer-events: none;
}

.nav-tabs .nav-link {
    border-radius: 0.5rem 0.5rem 0 0;
    background-color: lightgray;
    border: 0px solid transparent !important;
}

    .nav-tabs .nav-link.active {
        background-color: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }

fieldset {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

legend {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 1rem;
    width: auto;
}

.table th {
    background-color: #e9ecef;
    font-weight: 600;
    border-top: none;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}