/* Color palette variables */
:root {
  --primary-green: #2E7D32;      /* Darker green for headers */
  --secondary-green: #43A047;    /* Slightly lighter green for interactive elements */
  --light-green: #C8E6C9;       /* Very light green for backgrounds */
  --hover-green: #1B5E20;       /* Darker green for hover states */
  --accent-green: #81C784;      /* Medium green for accents */
  --bg-light: #F1F8E9;          /* Super light green for main background */
}

/* Navbar styling */
#nav-bar {
    background-color: var(--primary-green) !important;
}

/* Button primary override */
.btn-primary, .btn-success {
    background-color: var(--secondary-green) !important;
    border-color: var(--secondary-green) !important;
}

.btn-primary:hover, .btn-success:hover {
    background-color: var(--hover-green) !important;
    border-color: var(--hover-green) !important;
}

/* Chat card styling */
.card {
    background-color: var(--bg-light) !important;
    border: none;
}

.card-header {
    background-color: var(--primary-green) !important;
}

/* Message bubbles */
.chat-message-user {
    background-color: var(--secondary-green) !important;
    color: white;
    border-radius: 15px 15px 0 15px !important;
}

.chat-message-bot {
    background-color: white !important;
    border: 1px solid var(--light-green) !important;
    color: #333;
    border-radius: 15px 15px 15px 0 !important;
}

/* Input group styling */
.input-group .form-control {
    border: 1px solid var(--light-green);
}

.input-group .form-control:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 0.2rem rgba(67, 160, 71, 0.25);
}

/* Navbar active state */
.navbar .navbar-collapse ul.navbar-nav .nav-item.active {
    background-color: var(--accent-green) !important;
}

/* Custom scrollbar for chat messages */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: var(--bg-light);
}

#chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}