/* Custom styles for Just Catalog */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Product cards */
.card {
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    object-fit: cover;
}

/* Cart badge */
#cart-count {
    position: relative;
    top: -2px;
}

/* Table improvements */
.table > tbody > tr > td {
    vertical-align: middle;
}

/* Form improvements */
.form-control, .form-select {
    border-radius: 0.25rem;
}

/* Alert improvements */
.alert {
    border-radius: 0.25rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Notification toast */
.toast {
    min-width: 250px;
}

/* Category sidebar */
.list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Product detail page */
.product-detail-image {
    max-height: 500px;
    object-fit: contain;
}

/* Order status badges */
.badge {
    padding: 0.5em 0.75em;
}
