/* Menu Page CSS - matching dashboard style */

/* Base Styles inherited from dashboard */
.dashboard-container {
    font-family: 'Arial', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f7fa;
}

.dashboard-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e9f0;
    font-size: 28px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #718096;
    font-size: 14px;
}

.breadcrumb-item {
    margin-right: 20px;
    position: relative;
    color: #3182ce;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #4a5568;
    font-weight: 600;
}

.breadcrumb-item:not(.active)::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 0;
    color: #718096;
}

/* Menu Cards Grid */
.menu-cards-container {
    margin-bottom: 30px;
}

.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Menu Card Link and Styling */
.menu-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.menu-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.menu-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(128, 0, 128, 0.1); /* Light purple border matching metric cards */
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 5px rgba(128, 0, 128, 0.3);
    border-color: rgba(128, 0, 128, 0.3); /* Slightly darker border on hover */
    transform: translateY(-2px);
}

.menu-card-image {
    width: 100%;
    height: 180px; /* Increase from 140px */
    object-fit: contain; /* Change from 'cover' to 'contain' to show the full image */
    padding: 10px; /* Add some padding around the image */
    border-bottom: 1px solid #e5e9f0;
}

.menu-card-title {
    color: #2c3e50;
    font-size: 22px; /* Increased from 18px */
    margin: 15px 15px 10px;
    font-weight: 600;
}

.menu-card-description {
    color: #718096;
    font-size: 16px; /* Increased from 14px */
    margin: 0 15px 15px;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .menu-cards-grid {
        grid-template-columns: 1fr;
    }
}


.menu-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.menu-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* More specific rules to remove underlines */
.menu-card-link,
.menu-card-link:hover,
.menu-card-link:focus,
.menu-card-link:active {
    text-decoration: none !important;
}

/* Target the specific elements inside the link */
.menu-card-title,
.menu-card-description {
    text-decoration: none !important;
}

/* Additional override for any child elements */
.menu-card-link * {
    text-decoration: none !important;
}

.dropdown-menu {
    min-width: 280px !important;
}

.dropdown-menu .form-check {
    display: flex;
    align-items: center;
}

.dropdown-menu .form-check-input {
    margin-top: 0;
    margin-right: 8px;
}

.dropdown-menu .form-check-label {
    font-size: 14px;
}

.ag-theme-alpine .ag-header-center .ag-header-cell-label {
    justify-content: center;
}

.ag-theme-alpine .ag-header-group-cell-label {
    justify-content: center !important;
}