/* Globalna svetla / tamna tema — važi na celom sajtu */

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

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  color: #f8fbff;
  background-color: #001024;
  background-image:
    linear-gradient(rgba(0, 16, 36, 0.58), rgba(0, 16, 36, 0.62)),
    url('/static/img/test.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

html[data-theme="dark"] .main-content,
html[data-theme="dark"] .container {
  color: #f8fbff;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .form-input-number,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="tel"] {
  background: rgba(0, 16, 36, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #f8fbff !important;
}

html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] .form-input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(232, 241, 248, 0.5);
}

html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .app-modal .modal-content {
  background: #011f33;
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .app-modal .modal-body {
  background: #011f33;
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .app-modal.logout-modal .logout-modal__shell,
html[data-theme="dark"] .logout-pop .logout-modal__shell {
  background: linear-gradient(180deg, #011f33 0%, #014169 72%);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .logout-modal__close {
  color: rgba(232, 241, 248, 0.72);
}

html[data-theme="dark"] .logout-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
}

html[data-theme="dark"] .logout-modal__icon {
  background: rgba(17, 121, 197, 0.28);
  border-color: rgba(126, 200, 240, 0.35);
  color: #7ec8f0;
}

html[data-theme="dark"] .logout-modal__title {
  color: #f8fbff;
}

html[data-theme="dark"] .logout-modal__text {
  color: rgba(232, 241, 248, 0.78);
}

html[data-theme="dark"] .logout-modal__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fbff;
}

html[data-theme="dark"] .logout-modal__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
}

html[data-theme="dark"] .logout-modal__btn--primary {
  background: #1179c5;
  color: #fff !important;
}

html[data-theme="dark"] .app-modal.kontakt-admin-modal .kontakt-admin-modal__shell,
html[data-theme="dark"] .app-modal.kontakt-success-modal .logout-modal__shell {
  background: linear-gradient(180deg, #011f33 0%, #014169 72%);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .kontakt-admin-modal__hint,
html[data-theme="dark"] .kontakt-admin-modal__body label {
  color: rgba(232, 241, 248, 0.78);
}

html[data-theme="dark"] .kontakt-admin-modal__body .form-control {
  background: rgba(0, 16, 36, 0.45);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fbff;
}

html[data-theme="dark"] .kontakt-admin-modal__body .form-control::placeholder {
  color: rgba(232, 241, 248, 0.45);
}

html[data-theme="dark"] .kontakt-admin-modal .alert-danger {
  background: rgba(217, 119, 6, 0.18);
  border-color: rgba(217, 119, 6, 0.35);
  color: #fbbf24;
}

html[data-theme="dark"] .kontakt-admin-modal .alert-success {
  background: rgba(17, 121, 197, 0.28);
  border-color: rgba(126, 200, 240, 0.35);
  color: #f8fbff;
}

html[data-theme="dark"] .dropdown-menu {
  background: #011f33;
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
}

html[data-theme="dark"] .dropdown-item {
  color: #f8fbff;
}

html[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #7ec8f0;
}

html[data-theme="dark"] table.dataTable thead th {
  color: #e0f2fe;
}

html[data-theme="dark"] table.dataTable tbody td {
  color: #f8fbff;
}

html[data-theme="dark"] .dataTables_info,
html[data-theme="dark"] .dataTables_empty,
html[data-theme="dark"] .dataTables_paginate .paginate_button {
  color: rgba(232, 241, 248, 0.78) !important;
}

html[data-theme="dark"] .dataTables_paginate .paginate_button.current {
  background: rgba(17, 121, 197, 0.55) !important;
  color: #f8fbff !important;
  border-color: rgba(126, 200, 240, 0.35) !important;
}

html[data-theme="dark"] .alert,
html[data-theme="dark"] .settings-alert {
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .ql-toolbar,
html[data-theme="dark"] .ql-container,
html[data-theme="dark"] .ql-editor {
  background: rgba(0, 16, 36, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
}

html[data-theme="dark"] .ql-snow .ql-stroke {
  stroke: #7ec8f0;
}

html[data-theme="dark"] .ql-snow .ql-fill {
  fill: #7ec8f0;
}

html[data-theme="dark"] .flatpickr-calendar {
  background: #011f33;
  color: #f8fbff;
  box-shadow: 0 12px 32px rgba(0, 16, 36, 0.4);
}

html[data-theme="dark"] .sidebar.sidebar--vet {
  background: linear-gradient(180deg, #011627 0%, #012f4a 48%, #001020 100%);
}

html[data-theme="dark"] .sidebar.sidebar--vet ul.sidebar-nav a.is-active {
  background: rgba(17, 121, 197, 0.45);
  color: #f8fbff;
  box-shadow: none;
}

html[data-theme="dark"] .sidebar.sidebar--vet ul.sidebar-nav a.is-active i {
  color: #7ec8f0;
}

html[data-theme="dark"] .sidebar-settings.is-active {
  background: rgba(17, 121, 197, 0.45);
  color: #f8fbff;
  box-shadow: none;
}

html[data-theme="dark"] .sidebar-settings.is-active i {
  color: #7ec8f0;
}

/* Chat */
html[data-theme="dark"] .chat-preview,
html[data-theme="dark"] .chat-preview-container,
html[data-theme="dark"] .no-messages {
  background: linear-gradient(180deg, #011f33 0%, #014169 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

html[data-theme="dark"] .chat-preview:hover {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .chat-preview.unread {
  background: rgba(217, 119, 6, 0.16);
  border-left-color: #d97706;
}

html[data-theme="dark"] .chat-info h5,
html[data-theme="dark"] .chat-message-snippet {
  color: #f8fbff;
}
