:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background-color: #022d0c;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

.navbar-icon {
    height: 100px;
}

.nav-link {
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
    margin: 0 5px;
}

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        font-weight: 600;
    }

.stat-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.stat-icon {
    font-size: 3rem;
    opacity: 0.6;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

.table-responsive {
    border-radius: 10px;
}

.table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

.btn-action {
    padding: 4px 8px;
    font-size: 0.875rem;
    margin: 0 2px;
}

.input-group-text {
    background-color: #fff;
    border-right: none;
}

.form-control {
    border-radius: 6px;
}

.input-group .form-control {
    border-left: none;
}

    .input-group .form-control:focus {
        border-left: none;
        box-shadow: none;
    }

.input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.category-card {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .category-card:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

    .category-card .card-body {
        padding: 1.5rem;
    }

    .category-card h5 {
        color: var(--primary-color);
        font-weight: 600;
    }

.category-count {
    font-size: 2rem;
    font-weight: 700;
    color: #6c757d;
}

.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.low-stock-item {
    padding: 12px;
    border-left: 4px solid var(--warning-color);
    background-color: #fff3cd;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

    .low-stock-item:hover {
        background-color: #ffecb3;
    }

.view-section {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

    .table tbody tr:hover {
        background-color: #f8f9fa;
    }

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn-action {
        padding: 2px 6px;
        font-size: 0.75rem;
    }
}
