/* ====================================================================== */
/*                    FIX TEMA PHOENIX - LEGGIBILITÀ                     */
/* ====================================================================== */

/* Override colori problematici del tema Phoenix per garantire leggibilità */

/* Fix Badge problematici */
.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    border: 1px solid #e9ecef !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Fix Testi */
.text-muted {
    color: #6c757d !important;
}

.text-dark {
    color: #212529 !important;
}

.fw-semibold, .fw-bold {
    color: #212529 !important;
}

/* Fix Headers */
.h1, h1, .h2, h2, .h3, h3, .h4, h4, .h5, h5, .h6, h6 {
    color: #212529 !important;
}

/* Fix Form Controls */
.form-control, .form-select {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #ced4da !important;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.form-control:disabled, .form-select:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
}

/* Fix Tabelle */
.table {
    color: #212529 !important;
}

.table th {
    color: #212529 !important;
    background-color: #f8f9fa !important;
}

.table td {
    color: #212529 !important;
}

.table-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075) !important;
    color: #212529 !important;
}

/* Fix Bottoni Outline - aspetto evidente (rialzato, non piatto) */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-danger {
    box-shadow: 0 3px 8px rgba(0,0,0,0.16) !important;
    border-width: 1.5px !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
    box-shadow: 0 5px 16px rgba(0,0,0,0.22) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-color: #ffffff !important;
}

.btn-outline-primary:hover {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #6c757d !important;
    background-color: #ffffff !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-outline-info {
    color: #0dcaf0 !important;
    border-color: #0dcaf0 !important;
    background-color: #ffffff !important;
}

.btn-outline-info:hover {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

.btn-outline-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
    background-color: #ffffff !important;
}

.btn-outline-danger:hover {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Fix Alerts */
.alert {
    color: #212529 !important;
}

.alert-success {
    background-color: #d1edff !important;
    color: #0c5460 !important;
    border-color: #b8daff !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeaa7 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.alert-info {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border-color: #bee5eb !important;
}

/* Fix Cards */
.card {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.card-header {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-bottom-color: #dee2e6 !important;
}

.card-footer {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border-top-color: #dee2e6 !important;
}

/* Fix Dropdown */
.dropdown-menu {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

.dropdown-item {
    color: #212529 !important;
}

.dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

/* Fix Navigation */
.navbar-light .navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.55) !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* Fix Modal */
.modal-content {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.modal-header {
    border-bottom-color: #dee2e6 !important;
}

.modal-footer {
    border-top-color: #dee2e6 !important;
}

/* Fix per elementi con fst-italic */
.fst-italic {
    color: #6c757d !important;
}

/* Fix per company avatar nel caso abbia problemi */
.company-avatar {
    color: #ffffff !important;
}

/* Fix breadcrumb che potrebbe ereditare colori scuri */
.breadcrumb {
    background-color: #f8f9fa !important;
}

.breadcrumb-item {
    color: #6c757d !important;
}

.breadcrumb-item.active {
    color: #212529 !important;
}

.breadcrumb-item a {
    color: #0d6efd !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0a58ca !important;
    text-decoration: underline;
}

/* Override specifico per piccoli text e span che potrebbero essere problematici */
small, .small {
    color: #6c757d !important;
}

/* Assicuriamoci che il background generale sia sempre chiaro - Tabler-style */
body, html {
    background-color: var(--tblr-body-bg, #f6f8fb) !important;
    color: var(--tblr-body-color, #182433) !important;
}

/* Fix per elementi con classe text-success, text-warning, etc. */
.text-success {
    color: #198754 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* Fix per liste */
.list-group-item {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

.list-group-item:hover {
    background-color: #f8f9fa !important;
} 