/* Preventivi Lista Page Styles */

/* Box Controls */
.box-controls {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.box-controls .row {
    margin: 0;
}

.box-controls .col-md-2 {
    padding: 0 10px;
}

.box-controls label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

/* Form Controls */
.form-check-inline {
    display: inline-block;
    margin-right: 15px;
}

.form-check-input {
    margin-right: 8px;
}

.form-check-label {
    font-weight: normal;
    cursor: pointer;
}

/* Table Styles */
.table-responsive {
    margin-top: 15px;
}

.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
    color: #495057;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
    border-color: #dee2e6;
}

/* Text Colors */
.text-success {
    color: var(--color-primary) !important;
}

.text-info {
    color: #000000 !important;
}

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

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

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

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

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

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

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

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

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

.btn-outline-primary {
    color: #000000;
    border-color: #007bff;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-outline-primary:disabled {
    color: #6c757d;
    border-color: #6c757d;
    opacity: 0.65;
}

/* Box Footer */
.box-footer {
    padding: 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 3px 3px;
}

.btn-group {
    display: inline-flex;
    vertical-align: middle;
}

.btn-group .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.margin-left-10 {
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .box-controls .col-md-2 {
        margin-bottom: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-left: 0 !important;
        margin-bottom: 5px;
    }
    
    .form-check-inline {
        display: block;
        margin-bottom: 10px;
    }
}

/* Loading States */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.margin-top-10 {
    margin-top: 10px;
}

.text-center {
    text-align: center !important;
}

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

/* Icon Sizes */
.fa-3x {
    font-size: 3em;
}

/* Box Subtitle */
.box-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Info Box in Summary */
.info-box {
    margin-bottom: 15px;
}

.info-box-icon {
    color: white;
}

.info-box-number {
    font-size: 18px;
    font-weight: bold;
}

.info-box-text {
    font-size: 12px;
    text-transform: uppercase;
}

/* Pull Right/Left */
.pull-right {
    float: right !important;
}

.pull-left {
    float: left !important;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Form Control Focus */
.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Select Styles */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Tooltip Styles */
[title] {
    cursor: help;
}

/* Star Icon for Agency */
.fa-star {
    margin-left: 5px;
}

/* Status Icons */
.fa-check {
    margin-right: 3px;
}

.fa-clock-o {
    margin-right: 3px;
}

.fa-times {
    margin-right: 3px;
}

/* Paperclip Icon */
.fa-paperclip {
    cursor: help;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.btn:active {
    transform: translateY(0);
}

/* Table Row Hover */
.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.075);
    transition: background-color 0.2s ease;
}

/* Responsive Table */
@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .info-box-number {
        font-size: 16px;
    }
    
    .info-box-text {
        font-size: 10px;
    }
} 