body {
    background-color: #f5f6fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: #f1f3f5;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.alert {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.text-success {
    color: #28a745 !important;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    .navbar-text {
        font-size: 0.9rem;
    }
    .form-control, .form-select, .btn {
        font-size: 0.9rem;
    }
    .card-header h5 {
        font-size: 1.1rem;
    }
}

/* Table styles */
.table-compact th,
.table-compact td {
    padding: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-compact th.id-col,
.table-compact td.id-col {
    width: 60px;
}
.table-compact th.low-stock-col,
.table-compact td.low-stock-col {
    width: 100px;
}
.table-compact th.actions-col,
.table-compact td.actions-col {
    width: 120px;
}
.table-compact th.qty-col,
.table-compact td.qty-col {
    width: 80px;
}
.table-compact th.price-col,
.table-compact td.price-col {
    width: 90px;
}
.table-compact th.name-col,
.table-compact td.name-col {
    max-width: 200px;
    white-space: normal;
    overflow: visible;
}
.table-compact th.category-col,
.table-compact td.category-col {
    max-width: 120px;
}
.table-compact .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
}
.table-compact .badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
}
/* Alert styles */
.alert-compact {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.alert-compact .fas {
    font-size: 0.9rem;
}
.alert-compact .btn-close {
    padding: 0.5rem;
    font-size: 0.7rem;
}