/* Stili per la pagina Certificatori */

/* Nasconde il filtro di ricerca di DataTables */
.dataTables_filter { 
    display: none; 
}

/* Responsive table */
.table-responsive { 
    overflow-x: auto; 
}

/* Card styles */
.card { 
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2); 
    margin-bottom: 1rem; 
}

/* Button styles */
.btn-sm { 
    padding: 0.25rem 0.5rem; 
    font-size: 0.875rem; 
    border-radius: 0.2rem; 
}

/* Typography */
.h4 { 
    font-size: 1.5rem; 
    font-weight: 500; 
    line-height: 1.2; 
}

/* Text colors */
.text-info { 
    color: #000000 !important; 
}

.text-muted { 
    color: #6c757d !important; 
}

.text-danger { 
    color: #dc3545 !important; 
}

.text-success { 
    color: var(--color-primary) !important; 
}

.text-warning { 
    color: #ffc107 !important; 
}

/* Display utilities */
.hide { 
    display: none !important; 
}

.d-none { 
    display: none !important; 
}

/* Spinner */
.spinner-border { 
    width: 3rem; 
    height: 3rem; 
}

/* Alert styles */
.alert { 
    border-radius: 0.25rem; 
    padding: 0.75rem 1.25rem; 
    margin-bottom: 1rem; 
    border: 1px solid transparent; 
}

.alert-danger { 
    color: #721c24; 
    background-color: #f8d7da; 
    border-color: #f5c6cb; 
}

.alert-success { 
    color: #155724; 
    background-color: #d4edda; 
    border-color: #c3e6cb; 
}

/* Table styles */
.table th {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table td {
    vertical-align: middle;
}

/* Avatar styles */
.avatar-container {
    text-align: center;
    width: 50px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

/* Rating stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rating-stars .fa-star {
    font-size: 0.9rem;
}

.rating-number {
    margin-left: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

.rating {
    color: #ffc107;
}

.rating .fa-star {
    font-size: 0.9rem;
}

/* Status badges */
.badge {
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
}

.badge-success {
    background-color: var(--color-primary);
    color: white;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
    color: white;
}

.badge-info {
    background-color: var(--color-info);
    color: white;
}

/* Action buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    margin: 0 0.1rem;
}

/* Search box */
.search-box {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* Filter styles */
.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Statistics cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
}

.card.bg-primary .card-body,
.card.bg-success .card-body,
.card.bg-warning .card-body,
.card.bg-info .card-body {
    padding: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-block {
        display: block;
        width: 100%;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* DataTable customizations */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info {
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

/* Loading state */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.card:hover {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 2px 4px rgba(0,0,0,.2);
    transition: box-shadow 0.15s ease-in-out;
} 