

.scale-anim {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* ===============================
   GENERIC CARD SYSTEM
================================= */
.app-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 14px;
    border: 1px solid #eef1f4;
    position: relative;
    --hover-border-color: #0d6efd;
    --hover-shadow-color: rgba(0,0,0,0.08);
    will-change: transform;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 1s ease;
}

    .app-card:hover {
        border-color: var(--hover-border-color);
        box-shadow: 0 10px 25px var(--hover-shadow-color);
        transform: translateY(-3px) scale(1.02);
    }

/* ===============================
   GENERIC STATUS BORDER (ANIMATED)
================================= */

    .app-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 18px;
        bottom: 18px;
        width: 6px;
        border-radius: 6px;
        transform: scaleY(var(--border-scale, 0));
        transform-origin: top;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 1s ease;
    }

    /* Active */
    .status-active-border::before {
        background: linear-gradient(to bottom, #16c784, #20c997);
        transform: scaleY(1);
    }

    /* Inactive */
    .status-inactive-border::before {
        background: linear-gradient(to bottom, #ff6b6b, #ff922b);
        transform: scaleY(1);
    }

/* ===============================
   ACTIVE GLOW EFFECT
================================= */

.status-active-border {
    --hover-border-color: #16c784;
    --hover-shadow-color: rgba(22,199,132,0.18);
    box-shadow: 0 0 0 rgba(22,199,132,0);
    /*transition: box-shadow 0.35s ease;*/
}

    .status-active-border.app-glow {
        box-shadow: 0 0 18px rgba(22,199,132,0.25), 0 8px 24px rgba(22,199,132,0.08);
    }

/* ===============================
   INACTIVE GLOW EFFECT
================================= */

.status-inactive-border {
    --hover-border-color: #ff6b6b;
    --hover-shadow-color: rgba(255,107,107,0.18);
    box-shadow: 0 0 0 rgba(255,146,43,0);
}

    .status-inactive-border.app-glow {
        box-shadow: 0 0 18px rgba(255,107,107,0.25), 0 8px 24px rgba(255,107,107,0.08);
    }

/* ===============================
   GENERIC STATUS BADGE
================================= */

.status-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease, opacity 0.25s ease;
}

.status-active {
    background: rgba(22,199,132,0.12);
    color: #16c784;
}

.status-inactive {
    background: rgba(255,107,107,0.12);
    color: #ff6b6b;
}

/* Badge animation */

.status-badge.fade-out {
    opacity: 0;
    transform: scale(0.85);
}

.status-badge.fade-in {
    opacity: 1;
    transform: scale(1);
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.badge-pulse {
    animation: badgePulse 0.35s ease;
}

/* ===============================
   UPDATED BADGE
================================= */

.updated-badge {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 20px;
    background: #e7f1ff;
    color: #0d6efd;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.35s ease;
}

    .updated-badge.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ===============================
   ROW HIGHLIGHT
================================= */

.row-highlight {
    background-color: #e7f1ff !important;
}

/* ===============================
   COLLAPSE SECTION (GENERIC)
================================= */

.collapse-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

    .collapse-section.open {
        opacity: 1;
    }

/* ===============================
   LIGHTBOX (GENERIC)
================================= */

.app-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(6px);
}

    .app-lightbox img {
        max-width: 80%;
        max-height: 80%;
        border-radius: 16px;
    }

/* ===============================
   DARK MODE SUPPORT
================================= */

@media (prefers-color-scheme: dark) {

    .app-card {
        background: #1e1e2f;
        border-color: #2c2c3f;
    }

    .collapse-section {
        color: #d1d5db;
    }
}
