/* ========================================================================== */
/* ADMIN --> DISCOVER APPS                                                    */
/* ========================================================================== */

.discover-wrapper {
    position: relative;
    padding: 60px 70px;
    margin-left: var(--sidenav-width);
    margin-top: var(--topnav-height);
    margin-bottom: 300px;
}

@media (max-width: 991.98px) {
    .discover-wrapper {
        padding: 24px var(--page-gutter);
    }
}

/* BACK BUTTON */
.discover-back {
    position: absolute;
    top: 0;
    left: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
}

.back-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    text-decoration: none;
}

/* HEADER */
.discover-header {
    margin-bottom: 40px;
}

.discover-header h1 {
    font-size: 2.6rem;
    font-weight: 650;
    color: #032f4f;
}

.discover-sub {
    margin-top: 6px;
    font-size: 1.1rem;
    max-width: 700px;
    color: #4f6b80;
}

/* COMING SOON BANNER */
.discover-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    margin-bottom: 36px;
    background: linear-gradient(135deg, rgba(45, 100, 216, 0.08), rgba(61, 165, 255, 0.10));
    border: 1px solid rgba(45, 100, 216, 0.18);
    border-radius: 12px;
    color: #1e4cb3;
    font-weight: 600;
    font-size: 0.95rem;
}

.discover-banner-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* APP GRID */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

/* APP CARD */
.discover-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.discover-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(45, 100, 216, 0.22);
}

.discover-card-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.discover-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #022a46;
    margin: 0;
}

.discover-card-desc {
    font-size: 0.92rem;
    color: #4f6b80;
    line-height: 1.5;
    flex: 1;
}

.discover-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.discover-card-tag {
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    color: #64748b;
    background: rgba(100, 116, 139, 0.10);
    padding: 4px 10px;
    border-radius: 999px;
}

.discover-install-btn {
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    border: none;
    border-radius: 10px;
    background: #2d64d8;
    color: white;
    cursor: pointer;
    opacity: 1;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.discover-install-btn:hover:not(:disabled) {
    background: #1e4cb3;
    transform: translateY(-1px);
}

.discover-install-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.discover-install-btn.installing {
    background: #4b7de0;
    opacity: 0.8;
    cursor: wait;
}

.discover-installed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    white-space: nowrap;
}

.discover-card-installed {
    border-color: rgba(34, 197, 94, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .discover-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode → css/dark/admin/dark-admin-discover.css */
