body {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Smart theme with elegant shadows and animations */
.smart-shadow {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.smart-shadow:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.15);
}

.card-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link.active {
    color: #2e7d32;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid #2e7d32;
    background-color: transparent;
}

.nav-tabs .nav-link {
    color: #495057;
    transition: all 0.3s;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    margin-right: 0.5rem;
}

.nav-tabs .nav-link:hover {
    color: #2e7d32;
    border-bottom: 3px solid rgba(46, 125, 50, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    border: none;
    transition: all 0.3s ease;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-success:hover {
    background: linear-gradient(135deg, #33873a 0%, #1e6823 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.25);
}

.btn-outline-success {
    color: #2e7d32;
    border-color: #2e7d32;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-outline-success:hover {
    background-color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.15);
}

.badge-success {
    background-color: #4caf50;
}

.badge-warning {
    background-color: #ff9800;
}

.badge-danger {
    background-color: #f44336;
}

.product-chip {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 16px;
    padding: 4px 12px;
    margin: 4px;
    display: inline-block;
    transition: all 0.2s;
}

.product-chip:hover {
    background-color: #d4ebd5;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #757575;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #a5d6a7;
}

#firebaseStatusIndicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dc3545;
    display: inline-block;
    margin-left: 8px;
    transition: background-color 0.3s;
}

#firebaseStatusIndicator.connected {
    background-color: #28a745;
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    padding: 0 0.2rem;
    transition: all 0.3s;
}

.rating label i {
    color: #e0e0e0;
    transition: all 0.3s;
}

.rating input:checked ~ label i {
    color: #ffc107;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.rating label:hover i,
.rating label:hover ~ label i {
    color: #ffca28;
    transform: scale(1.2);
}

.rating:hover input:checked ~ label i:not(:hover) {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .table {
        font-size: 0.9rem;
    }
    .btn-sm {
        padding: .25rem .4rem;
        font-size: .875rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.notification {
    animation: fadeIn 0.4s ease-out;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list-group-item {
    border-radius: 8px !important;
    margin-bottom: 8px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f9fff9;
    transform: translateY(-2px);
}

.search-wrapper {
    position: relative;
}

.smart-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.smart-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}