/* OneView Dashboard - Metrics Component */
/* Metric Cards Styling and Responsive Design */

/* Base Metric Card Styling */
.metric-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Metric Title Icon Styling - First Row Icons */
.metric-title i {
    font-size: 1.56em; /* 20% increase from 1.3em */
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Mini Metric Cards (Second Row) - 30% Reduced Height */
.metric-card.metric-card-mini {
    height: 84px !important; /* 30% reduction from 120px */
    min-height: 84px !important;
    max-height: 84px !important;
    padding: 1rem; /* Adjusted padding for proportions */
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Metric Value Styling */
.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-gray);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

/* Metric Label Styling */
.metric-label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date Range Metric Card Specific Styling */
#date-range {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
    hyphens: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design for Metrics */

/* Large Desktop - 1200px and up */
@media (max-width: 1199px) {
    .metric-card {
        padding: 1rem;
        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;
    }
    
    /* Mini cards responsive adjustment */
    .metric-card.metric-card-mini {
        height: 70px !important; /* 30% reduction from 100px */
        min-height: 70px !important;
        max-height: 70px !important;
        padding: 0.75rem;
    }
    
    /* Responsive icon sizing */
    .metric-title i {
        font-size: 1.4em; /* Slightly smaller for medium screens */
    }
    
    .metric-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
}

/* Small Desktop/Tablet - 992px to 1199px */
@media (max-width: 991px) {
    .metric-card {
        padding: 0.75rem;
        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;
    }
    
    /* Mini cards responsive adjustment */
    .metric-card.metric-card-mini {
        height: 63px !important; /* 30% reduction from 90px */
        min-height: 63px !important;
        max-height: 63px !important;
        padding: 0.5rem;
    }
    
    /* Responsive icon sizing */
    .metric-title i {
        font-size: 1.3em; /* Medium size for tablets */
    }
    
    .metric-value {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .metric-label {
        font-size: 0.7rem;
    }
    
    /* Improve metric cards spacing on tablet */
    .metric-card {
        margin-bottom: 1rem;
    }
}

/* Mobile - 768px and below */
@media (max-width: 767px) {
    .metric-card {
        padding: 0.5rem;
        height: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
    
    /* Mini cards responsive adjustment */
    .metric-card.metric-card-mini {
        height: 56px !important; /* 30% reduction from 80px */
        min-height: 56px !important;
        max-height: 56px !important;
        padding: 0.375rem;
    }
    
    /* Responsive icon sizing */
    .metric-title i {
        font-size: 1.2em; /* Smaller for mobile */
    }
    
    .metric-value {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
    
    /* Better mobile spacing */
    .metric-card {
        margin-bottom: 0.75rem;
    }
    
    /* Date range responsive adjustment */
    #date-range {
        font-size: 1.25rem !important;
    }
}

/* Extra Small Mobile - 575px and below */
@media (max-width: 575px) {
    /* Responsive icon sizing */
    .metric-title i {
        font-size: 1.1em; /* Smallest for extra small screens */
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .metric-label {
        font-size: 0.75rem;
    }
} 