/* Home container */
.container.mt-5 {
    padding: 2rem 0;
}


/* Headings (font inherited from style.css: Lexend Bold) */
h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #212529;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #212529;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #e9ecef;
}

/* Paragraphs (font inherited from style.css: Lato) */
p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

body.dark-mode p {
    color: #ced4da;
}

/* Form elements */
.form-check-label,
.form-label {
    color: #212529;
}

body.dark-mode .form-check-label,
body.dark-mode .form-label {
    color: #e9ecef;
}

.form-control {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #ced4da;
}

.form-control:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
}

body.dark-mode .form-control {
    background-color: #343a40;
    color: #e9ecef;
    border-color: #495057;
}

body.dark-mode .form-control:disabled {
    background-color: #495057;
    opacity: 0.7;
}

/* Placeholder color */
.form-control::placeholder {
    color: #3c3e3f; /* Default placeholder color in light mode */
}

body.dark-mode .form-control::placeholder {
    color: #b1a9a9; /* White placeholder in dark mode */
}

/* Remove focusing border on keyword input */
.keyword-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #ced4da;
}

body.dark-mode .keyword-input:focus {
    border-color: #495057;
}

/* Keyword container */
.keyword-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Keyword badges */
.keyword-container span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: #198754;
    color: #ffffff;
}

body.dark-mode .keyword-container span {
    background-color: #157347;
}

/* Close button inside badges */
.keyword-container .keyword-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    line-height: 1;
}

.keyword-container .keyword-close:hover {
    color: #dc3545;
}

/* Start Chat button */
.btn.btn-success.start-chat-btn {
    background-color: #198754;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.btn.btn-success.start-chat-btn:hover {
    background-color: #157347;
}

body.dark-mode .btn.btn-success.start-chat-btn {
    background-color: #157347;
}

body.dark-mode .btn.btn-success.start-chat-btn:hover {
    background-color: #126138;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container.mt-5 {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .row {
        flex-direction: column;
    }

    .col-md-6 {
        margin-bottom: 1rem;
    }
}

.traffic-counter {
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}