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);
}

/* Today's Follow-ups Styles */
.today-followup-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.today-followup-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.15);
    border-color: #2e7d32;
}

.today-followup-item:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.today-followup-item.copy-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #16a34a;
    animation: copySuccess 0.5s ease;
}

.priority-high {
    border-left: 4px solid #dc2626;
}

.priority-medium {
    border-left: 4px solid #ea580c;
}

.priority-low {
    border-left: 4px solid #16a34a;
}

.copy-indicator {
    position: absolute;
    top: -30px;
    right: 16px;
    background-color: #16a34a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.copy-indicator.show {
    top: 8px;
    opacity: 1;
}

.product-chip {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.time-badge {
    background-color: #dcfdf4;
    color: #059669;
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.priority-badge.medium {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #fbbf24;
}

.priority-badge.low {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #4ade80;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.followup-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.followup-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d1d5db;
}