.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1080px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 5px !important;
    }
    .dashboard-card {
        padding: 14px 6px !important;
    }
}

@media (max-width:600px) {
    .dashboard-card {
        padding: 6px 2px !important;
    }
}

.dashboard-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-left: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, transparent, rgba(42, 157, 143, 0.05));
    border-radius: 0 0 0 100%;
}

.dashboard-card h3 {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.low-stock-card h3::before {
    content: "\f06a";
    color: #f44336;
}

.recent-additions-card h3::before {
    content: "\f067";
    color: #4CAF50;
}

.recently-edited-card h3::before {
    content: "\f044";
    color: #2196F3;
}

.inventory-summary-card h3::before {
    content: "\f080";
    color: #9C27B0;
}

.low-stock-card .low-stock-item,
.recent-additions-card .recent-item,
.recently-edited-card .recent-item,
.inventory-summary-card .summary-stat {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f8f8;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.low-stock-card .low-stock-item:hover,
.recent-additions-card .recent-item:hover,
.recently-edited-card .recent-item:hover,
.inventory-summary-card .summary-stat:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

.low-stock-card .low-stock-item {
    display: flex;
    justify-content: space-between;
}

.low-stock-card .low-stock-item:last-child {
    border-bottom: none;
}

.recent-additions-card .recent-item,
.recently-edited-card .recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.recent-additions-card .recent-item img,
.recently-edited-card .recent-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.recently-edited-card .edit-changes {
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 5px;
}

.inventory-summary-card .summary-stat {
    display: flex;
    justify-content: space-between;
}

.inventory-summary-card .summary-stat:last-child {
    border-bottom: none;
}

.inventory-summary-card .stat-label {
    color: var(--text-color);
    font-weight: 500;
}

.inventory-summary-card .stat-value {
    color: var(--accent-color);
    font-weight: 700;
}