Thursday, June 04, 2026 3:11:53 AM
> _dashboard.scss
// =============================================================================
// DASHBOARD SIDEBAR
// =============================================================================

.server-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;

    &--online {
        background-color: $esm-ui-success;
        box-shadow: 0 0 0 2px rgba($esm-ui-success, 0.2);
    }

    &--warning {
        background-color: $esm-ui-warning;
        box-shadow: 0 0 0 2px rgba($esm-ui-warning, 0.2);
    }

    &--offline {
        background-color: $esm-ui-danger;
        box-shadow: 0 0 0 2px rgba($esm-ui-danger, 0.2);
    }
}

// Better spacing and typography for sidebar items
.dashboard-sidebar {
    .list-group-item {
        border-color: rgba($esm-warm-gray-100, 0.1);

        &:hover {
            .server-status {
                transform: scale(1.2);
                transition: transform 0.15s ease-in-out;
            }
        }
    }

    .card-header h5 {
        color: $esm-warm-gray-300;
        letter-spacing: 0.5px;
    }

    // Better visual hierarchy for server names
    .fw-medium {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    small {
        font-size: 0.8rem;
        opacity: 0.8;
    }
}

// =============================================================================
// COMMUNITIES OVERVIEW
// =============================================================================

.community-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    border: 1px solid rgba($esm-warm-gray-100, 0.1);
    min-height: 180px; // Slightly taller for better proportions
    width: 100%; // Force full width usage

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba($esm-warm-gray-900, 0.4);
        border-color: rgba($esm-warm-gray-100, 0.2);
    }

    // Server community cards get the primary blue accent
    &:not(.community-card--player) {
        border-left: 3px solid $esm-ui-primary;

        &:hover {
            border-left-color: lighten($esm-ui-primary, 15%);
        }
    }

    // Player community cards get the info accent
    &--player {
        border-left: 3px solid $esm-ui-info;

        &:hover {
            border-left-color: lighten($esm-ui-info, 15%);
        }
    }

    .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
        color: $esm-warm-gray-100;
        font-weight: 600;
    }

    .card-text {
        color: $esm-warm-gray-400;
    }

    // Server count badge styling
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        background-color: $esm-ui-success !important;
        font-weight: 600;
    }

    // Ensure flexbox behavior for equal heights
    .card-body {
        display: flex;
        flex-direction: column;
        padding: 1.25rem; // Slightly more padding for breathing room

        .mt-auto {
            margin-top: auto !important;
        }
    }
}

// Smaller status dots for the overview cards
.community-card .server-status {
    width: 8px;
    height: 8px;

    &--online {
        background-color: $esm-ui-success;
    }

    &--offline {
        background-color: $esm-ui-danger;
    }

    &--warning {
        background-color: $esm-ui-warning;
    }
}

// =============================================================================
// EMPTY STATE CARDS
// =============================================================================

.empty-state-card {
    min-height: 280px; // Force consistent height to match community cards
    border: 1px solid rgba($esm-warm-gray-100, 0.1);

    .card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .display-4 {
        opacity: 0.6;
        margin-bottom: 1rem;
    }

    h5 {
        color: $esm-warm-gray-400;
        font-weight: 500;
        margin-bottom: 0.75rem;
    }

    p {
        color: $esm-warm-gray-500;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;

        &:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
    }
}
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 4294fb2