
/* Card Hover Effect */
.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
    }

/* Dashboard Card Styles */
.dashboard-card .dashboard-preview {
    position: relative;
    overflow: hidden;
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

    .dashboard-card .dashboard-preview::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    }

/* Gauge Card Styles */
.gauge-card {
    overflow: hidden;
}

.gauge-background {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.gauge-icon-bg {
    position: absolute;
    font-size: 120px;
    color: currentColor;
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gauge-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gauge-range {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Table Dashboard Card Styles */
.table-dash-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(13, 202, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-preview {
    margin-top: 1rem;
}

.mini-table {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 0.5rem;
}

.mini-table-row {
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 6px;
}

    .mini-table-row:last-child {
        margin-bottom: 0;
    }

    .mini-table-row.header {
        background: rgba(13, 202, 240, 0.3);
        height: 10px;
    }

/* Report Card Styles */
.report-card {
    overflow: hidden;
}

.report-background {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 20px;
    opacity: 0.3;
    z-index: 0;
    transform: rotate(15deg);
}

.report-icon-bg {
    position: absolute;
    font-size: 100px;
    color: currentColor;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
}

.report-icon-container {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-filename {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

/* Responsive Grid */
@media (max-width: 767.98px) {
    .card-hover:hover {
        transform: none;
    }
}

/* Section Headings */
.row h4 {
    font-weight: 600;
    color: #1e293b;
}

    .row h4 i {
        opacity: 0.8;
    }

/* Info Grid in Main Card */
.card-body .row.g-3 > div {
    padding: 0.75rem;
}

.card-body .row.g-3 i {
    /*font-size: 1.25rem;*/
    width: 30px;
}

/* Status Badges in Header Card */
.badge.fs-6 {
    font-size: 1rem !important;
    font-weight: 500;
}

/* Empty State */
.alert.d-flex i.fa-2x {
    font-size: 2.5rem;
}

/* Card Footer Buttons */
.card-footer .btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

    .card-footer .btn:hover {
        transform: translateY(-2px);
    }

/* Spinner — solo per spinner standalone (non dentro bottoni) */
.text-center > .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* Card Grid Spacing */
    .row.g-3 {
        --bs-gutter-y: 1rem;
    }

/* Text Truncate for Long Names */
.card-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badge in Header */
.badge.bg-primary,
.badge.bg-success,
.badge.bg-info,
.badge.bg-warning {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
}
