body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #212529;
}

.small,
small {
  font-size: .675em;
  opacity: .7
}


.navbar{
  background-color: #15171b
}

.wysiwyg-editor {
  border: 1px solid #495057;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
  min-height: 120px;
  padding: 0.75rem;
  color: #fff;
}

.wysiwyg-editor:focus {
  outline: none;
  border-color: #86b7fe;
}

.wysiwyg-toolbar {
  border-bottom: none;
}

.wysiwyg-toolbar button {
  border: none;
  background: none;
  color: #fff;
  padding: 0.25rem 0.5rem;
  margin-right: 0.25rem;
  border-radius: 0.25rem;
  font-weight: bold;
}

.wysiwyg-toolbar button:hover {
  background: #495057;
}

input[type="text"], input[type="url"], textarea {
  color: white;
}

input[type="text"]:focus, input[type="url"]:focus, textarea:focus {
  outline: none;
  box-shadow: none;
  border-color: rgb(96 104 111);
  background: #373e44 !important;
}

/* Primary button - solid */
.btn-primary {
    background-color: #1bc8ca !important;
    border-color: #1bc8ca !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #159a9c !important;
    border-color: #159a9c !important;
}

/* Primary button - outline */
.btn-outline-primary {
    color: #1bc8ca !important;
    border-color: #1bc8ca !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #1bc8ca !important;
    border-color: #1bc8ca !important;
    color: #fff !important;
}

/* Other primary elements */
.bg-primary {
    background-color: #1bc8ca !important;
}

.text-primary {
    color: #1bc8ca !important;
}

.border-primary {
    border-color: #1bc8ca !important;
}

.alert-primary {
    background-color: rgba(27, 200, 202, 0.1) !important;
    border-color: #1bc8ca !important;
    color: #1bc8ca !important;
}

.ai-response {
  font-size: 1.1em;
  line-height: 1.6;
}

.ai-response p {
  margin-bottom: 1rem;
}

.bg-dark {
  background-color: #1c1f23 !important;
}

/* ------------------------- */
/* CK Editor Dark Theme      */
/* ------------------------- */

.ck.ck-editor__editable_inline,
.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable),
.ck.ck-editor__main > .ck-editor__editable {
    background-color: #212529 !important;
    color: #dee2e6 !important;
    border-color: #495057 !important;
}

.ck.ck-toolbar {
    background-color: #212529 !important;
    border-color: #495057 !important;
    border-bottom-color: #495057 !important;
}

.ck.ck-button,
.ck.ck-button.ck-off {
    background-color: #212529 !important;
    color: #dee2e6 !important;
}

.ck.ck-button:not(.ck-disabled):hover,
.ck.ck-button:not(.ck-disabled):focus {
    background-color: #343a40 !important;
}

.ck.ck-button.ck-on {
    background-color: #495057 !important;
    color: #fff !important;
}

.ck.ck-content {
    background-color: #212529 !important;
    color: #dee2e6 !important;
}

.ck.ck-dropdown__panel {
    background-color: #212529 !important;
    border-color: #495057 !important;
}

.ck.ck-list__item .ck-button:hover {
    background-color: #343a40 !important;
}

.ck.ck-icon {
    color: #dee2e6 !important;
}

.ck.ck-toolbar__separator {
    background-color: #495057 !important;
}

.ck.ck-tooltip .ck-tooltip__text {
    background-color: #343a40 !important;
    color: #dee2e6 !important;
}

/* ------------------------- */
/* Light Theme Styles        */
/* ------------------------- */

[data-bs-theme="light"] {
  color-scheme: light;
}

[data-bs-theme="light"] body {
  background-color: #fff;
  color: #212529;
}

[data-bs-theme="light"] .bg-dark {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6;
}

[data-bs-theme="light"] .bg-light {
  background-color: #212529 !important;
}

[data-bs-theme="light"] .text-dark {
  color: #000 !important;
}

[data-bs-theme="light"] .text-light {
  color: #212529 !important;
}

[data-bs-theme="light"] footer.bg-dark {
    border-bottom: none;
    border-top: 1px solid #dee2e6 !important;
}

[data-bs-theme="light"] .navbar-dark .nav-link {
    color: rgba(0, 0, 0, .55);
}

[data-bs-theme="light"] .navbar-dark .nav-link:hover,
[data-bs-theme="light"] .navbar-dark .nav-link:focus {
    color: rgba(0, 0, 0, .7);
}

[data-bs-theme="light"] .navbar-dark .nav-link.active {
    color: #000 !important;
}

[data-bs-theme="light"] .bg-secondary {
    background-color: #e9ecef !important;
}

[data-bs-theme="light"] .text-white {
    color: #212529 !important;
}

[data-bs-theme="light"] .text-muted,
[data-bs-theme="light"] .text-muted a {
    color: #6c757d !important;
}

[data-bs-theme="light"] .border-secondary {
    border-color: #dee2e6 !important;
}

[data-bs-theme="light"] input[type="text"],
[data-bs-theme="light"] input[type="url"],
[data-bs-theme="light"] textarea {
  background: rgb(255, 255, 255) !important;
  color: #000;
  border: 1px solid #ced4da;
}

[data-bs-theme="light"] input[type="text"]:focus,
[data-bs-theme="light"] input[type="url"]:focus,
[data-bs-theme="light"] textarea:focus {
  border-color: #86b7fe;
}

[data-bs-theme="light"] .wysiwyg-editor {
  border-color: #ced4da;
  color: #212529;
}

[data-bs-theme="light"] .wysiwyg-toolbar {
  border-color: #ced4da;
  background: #f8f9fa;
}

[data-bs-theme="light"] .wysiwyg-toolbar button {
  color: #212529;
}

[data-bs-theme="light"] .wysiwyg-toolbar button:hover {
  background: #e9ecef;
}

[data-bs-theme="light"] .navbar-toggler {
    background: #e9ecef;
    color: #212529;
}

[data-bs-theme="light"] .navbar-toggler .fw-bold{
    color: #212529;
}

/* Sub-nav active states */
#subNav .nav-link.active {
  background: rgba(27, 200, 202, 0.15);
  border-radius: 0.25rem;
}

[data-bs-theme="light"] #subNav .nav-link.active {
  background: rgba(27, 200, 202, 0.15);
  color: #1bc8ca !important;
}

[data-bs-theme="light"] .navbar{
  background-color: #e1e1e1
}

@media (max-width: 991.98px) {
  [data-bs-theme="light"] .navbar-collapse.show, 
  [data-bs-theme="light"] .navbar-collapse.collapsing {
    background: #f8f9fa;
  }
}

/* ------------------------- */
/* CK Editor Light Theme     */
/* ------------------------- */

[data-bs-theme="light"] .ck.ck-editor__editable_inline,
[data-bs-theme="light"] .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable),
[data-bs-theme="light"] .ck.ck-editor__main > .ck-editor__editable {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #ced4da !important;
}

[data-bs-theme="light"] .ck.ck-toolbar {
    background-color: #f8f9fa !important;
    border-color: #ced4da !important;
    border-bottom-color: #ced4da !important;
}

[data-bs-theme="light"] .ck.ck-button,
[data-bs-theme="light"] .ck.ck-button.ck-off {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .ck.ck-button:not(.ck-disabled):hover,
[data-bs-theme="light"] .ck.ck-button:not(.ck-disabled):focus {
    background-color: #e9ecef !important;
}

[data-bs-theme="light"] .ck.ck-button.ck-on {
    background-color: #dee2e6 !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .ck.ck-content {
    background-color: #fff !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .ck.ck-dropdown__panel {
    background-color: #fff !important;
    border-color: #ced4da !important;
}

[data-bs-theme="light"] .ck.ck-list__item .ck-button:hover {
    background-color: #f8f9fa !important;
}

[data-bs-theme="light"] .ck.ck-icon {
    color: #212529 !important;
}

[data-bs-theme="light"] .ck.ck-toolbar__separator {
    background-color: #ced4da !important;
}

[data-bs-theme="light"] .ck.ck-tooltip .ck-tooltip__text {
    background-color: #212529 !important;
    color: #fff !important;
}

/* CK Editor focus states for both themes */
.ck.ck-editor__editable:focus {
    border-color: #86b7fe !important;
    outline: none !important;
}

[data-bs-theme="light"] .ck.ck-editor__editable:focus {
    border-color: #86b7fe !important;
}