/* Google Fonts - IBM Plex Sans */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

* {
    font-family: 'IBM Plex Sans', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #f8f9fa;
}

#react-entry-point {
    height: 100%;
}

/* Platform card hover effect */
.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile bottom nav styling */
.mobile-bottom-nav {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Monitoring Metrics Grid - Responsive Layout */
.metrics-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Mobile layout (< 768px): Stacked with special structure */
@media (max-width: 767px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 0.5rem; /* Reduced gap for mobile */
    }

    /* First card takes full width */
    .metrics-grid .metric-card-item:nth-child(1) {
        grid-column: 1 / -1;
    }

    /* Second and third cards in 2-column grid */
    .metrics-grid .metric-card-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .metrics-grid .metric-card-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    /* Fourth and fifth cards in 2-column grid */
    .metrics-grid .metric-card-item:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 3;
    }

    .metrics-grid .metric-card-item:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 3;
    }
}

/* Desktop layout (>= 768px): 5-column grid */
@media (min-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .metrics-grid .metric-card-item {
        grid-row: 1;
    }
}

/* Ensure metric cards take full height and handle overflow */
.metric-card-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0; /* Allow flex items to shrink below content size */
    box-sizing: border-box;
}

.metric-card-item > div {
    flex: 1;
    box-sizing: border-box;
}
