.uk-button {
  font-weight: 500;
  text-transform: none;
  transition: all 0.2s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.uk-button:hover {
  transform: translateY(-1px);
}
.uk-button:active {
  transform: translateY(0);
}
.uk-button [uk-icon] {
  margin-right: 8px;
}
.uk-button:focus-visible {
  outline: 2px solid #1e5a8e;
  outline-offset: 2px;
}

.uk-button-primary {
  background: linear-gradient(135deg, #1e5a8e 0%, rgb(25.5523255814, 76.6569767442, 120.9476744186) 100%);
  border: none;
}
.uk-button-primary:hover {
  background: linear-gradient(135deg, #164872 0%, rgb(17.875, 58.5, 92.625) 100%);
  box-shadow: 0 4px 12px rgba(30, 90, 142, 0.3);
}
.uk-button-primary:active {
  box-shadow: 0 2px 6px rgba(30, 90, 142, 0.4);
}

.uk-button-success {
  background: linear-gradient(135deg, #2d7f3e 0%, rgb(38.3284883721, 108.1715116279, 52.8081395349) 100%);
}
.uk-button-success:hover {
  background: linear-gradient(135deg, #236632 0%, rgb(28.4854014599, 83.0145985401, 40.6934306569) 100%);
  box-shadow: 0 4px 12px rgba(45, 127, 62, 0.3);
}

.uk-button-danger {
  background: linear-gradient(135deg, #c0392b 0%, rgb(171.1659574468, 50.814893617, 38.3340425532) 100%);
}
.uk-button-danger:hover {
  background: linear-gradient(135deg, #a93226 0%, rgb(148.1811594203, 43.8405797101, 33.3188405797) 100%);
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3);
}

.uk-button-default {
  border: 1px solid #ddd;
  background: #f8f9fa;
}
.uk-button-default:hover {
  background: #e9ecef;
  border-color: rgb(195.5, 195.5, 195.5);
}

.uk-button-small {
  padding: 0 15px;
  line-height: 30px;
  font-size: 0.875rem;
}

.uk-button-large {
  padding: 0 40px;
  line-height: 50px;
  font-size: 1.125rem;
}

.uk-icon-button {
  transition-property: background-color, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.uk-icon-button:hover {
  background-color: rgba(30, 90, 142, 0.1);
  transform: scale(1.1);
}
.uk-icon-button:active {
  transform: scale(0.95);
}
.uk-icon-button:focus-visible {
  outline: 2px solid #1e5a8e;
  outline-offset: 2px;
}

.uk-button-group .uk-button {
  margin-left: -1px;
}
.uk-button-group .uk-button:first-child {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.uk-button-group .uk-button:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.uk-button-group .uk-button:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.uk-button-text {
  color: #1e5a8e;
  padding: 0;
}
.uk-button-text:hover {
  color: #164872;
  text-decoration: underline;
}
.uk-button-text [uk-icon] {
  margin-right: 6px;
}

.uk-button[disabled],
.uk-button.uk-button-loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.uk-button[disabled]::after,
.uk-button.uk-button-loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: uk-button-spin 0.8s linear infinite;
}

@keyframes uk-button-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.uk-input,
.uk-select,
.uk-textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
}
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
  box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
  border-color: #1e5a8e;
  background: #fff;
  outline: none;
}
.uk-input:disabled, .uk-input[readonly],
.uk-select:disabled,
.uk-select[readonly],
.uk-textarea:disabled,
.uk-textarea[readonly] {
  background: #f5f7f9;
  border-color: #e5e5e5;
  color: #6c757d;
  cursor: not-allowed;
}
.uk-input::placeholder,
.uk-select::placeholder,
.uk-textarea::placeholder {
  color: rgb(133.7553648069, 142.4849785408, 150.2446351931);
}

.uk-input,
.uk-select {
  height: 40px;
  padding: 0 10px;
}

.uk-textarea {
  padding: 6px 10px;
  resize: vertical;
  min-height: 80px;
}

.uk-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 32px;
}

.uk-form-danger {
  border-color: #c0392b !important;
}
.uk-form-danger:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.uk-form-success {
  border-color: #2d7f3e !important;
}
.uk-form-success:focus {
  box-shadow: 0 0 0 3px rgba(45, 127, 62, 0.1);
}

.uk-form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  display: block;
}
.uk-form-label .uk-text-danger {
  color: #c0392b;
  margin-left: 2px;
}

.uk-form-controls .uk-text-danger {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
}
.uk-form-controls .uk-text-muted {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
}

.uk-checkbox,
.uk-radio {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  background: #fff;
  transition: all 0.2s ease;
}
.uk-checkbox:checked,
.uk-radio:checked {
  background-color: #1e5a8e;
  border-color: #1e5a8e;
}
.uk-checkbox:focus,
.uk-radio:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}
.uk-checkbox:disabled,
.uk-radio:disabled {
  background: #f5f7f9;
  border-color: #e5e5e5;
  cursor: not-allowed;
}

.uk-radio {
  border-radius: 50%;
}

.uk-form-stacked .uk-form-label {
  display: block;
  margin-bottom: 8px;
}

.uk-form-horizontal .uk-form-label {
  padding-top: 8px;
}
@media (min-width: 960px) {
  .uk-form-horizontal .uk-form-label {
    text-align: right;
    padding-right: 20px;
  }
}

.uk-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
.uk-fieldset .uk-legend {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  padding-bottom: 15px;
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 20px;
  width: 100%;
  display: block;
}
.uk-fieldset .uk-legend a {
  color: #1e5a8e;
  text-decoration: none;
}
.uk-fieldset .uk-legend a:hover {
  color: #164872;
}
.uk-fieldset .uk-legend a [uk-icon] {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.uk-input-group {
  display: flex;
}
.uk-input-group .uk-input {
  flex: 1;
}
.uk-input-group .uk-input:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.uk-input-group .uk-input:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.uk-input-group .uk-button:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.uk-input-group .uk-button:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.uk-search-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding-left: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.uk-search-input:focus {
  box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}
.uk-search-input:focus {
  border-color: #1e5a8e;
  box-shadow: 0 0 0 3px rgba(30, 90, 142, 0.1);
}

.uk-search-icon {
  left: 12px;
  color: #6c757d;
}

.uk-search-default {
  width: 100%;
}
.uk-search-default .uk-search-input {
  height: 40px;
}

.uk-input[type=file] {
  padding: 8px;
  cursor: pointer;
}
.uk-input[type=file]::file-selector-button {
  padding: 4px 12px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.uk-input[type=file]::file-selector-button:hover {
  background: #e9ecef;
}

.uk-form-small {
  width: 130px;
}

.uk-form-medium {
  width: 200px;
}

.uk-form-large {
  width: 500px;
}

.uk-navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 10px 0;
  position: relative;
  z-index: 980;
}

.uk-navbar-container {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.uk-navbar-nav > li > a {
  color: #555;
  font-size: 16px;
  font-weight: 500;
  padding: 0 15px;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.uk-navbar-nav > li > a:hover {
  color: #1e5a8e;
}
.uk-navbar-nav > li > a [uk-icon] {
  margin-right: 6px;
}
.uk-navbar-nav > li.uk-active > a {
  color: #1e5a8e;
  position: relative;
}
.uk-navbar-nav > li.uk-active > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background: #1e5a8e;
  border-radius: 2px 2px 0 0;
}

.uk-navbar-item,
.uk-navbar-toggle {
  color: #333;
  padding: 0 15px;
  min-height: 40px;
}

.uk-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e5a8e;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.uk-logo:hover {
  color: #164872;
  text-decoration: none;
}
.uk-logo img {
  max-height: 40px;
  width: auto;
}

.uk-navbar-dropdown {
  background: #fff;
  color: #333;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 15px;
  min-width: 200px;
}
.uk-navbar-dropdown .uk-nav > li > a {
  color: #555;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.uk-navbar-dropdown .uk-nav > li > a:hover {
  background: rgba(30, 90, 142, 0.08);
  color: #1e5a8e;
}
.uk-navbar-dropdown .uk-nav > li > a [uk-icon] {
  margin-right: 8px;
}
.uk-navbar-dropdown .uk-nav > li.uk-active > a {
  color: #1e5a8e;
  background: rgba(30, 90, 142, 0.1);
}
.uk-navbar-dropdown .uk-nav .uk-nav-divider {
  border-top: 1px solid #e5e5e5;
  margin: 10px 0;
}
.uk-navbar-dropdown .uk-nav .uk-nav-header {
  font-size: 0.875rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #6c757d;
  padding: 8px 12px 4px;
  letter-spacing: 0.5px;
}

.uk-navbar-sticky.uk-sticky {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: navbar-slide-down 0.3s ease;
}

@keyframes navbar-slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.uk-navbar-toggle {
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
}
.uk-navbar-toggle:hover {
  color: #1e5a8e;
  text-decoration: none;
}
.uk-navbar-toggle:focus {
  outline: 2px solid #1e5a8e;
  outline-offset: 2px;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}
.language-switcher form {
  display: inline;
}
.language-switcher button {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.language-switcher button:hover {
  background: rgba(30, 90, 142, 0.08);
  color: #1e5a8e;
}
.language-switcher button.active {
  background: #1e5a8e;
  color: white;
}
.language-switcher button:focus {
  outline: 2px solid #1e5a8e;
  outline-offset: 2px;
}
.language-switcher .separator {
  color: #e5e5e5;
  font-weight: 300;
}

.user-menu .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e5a8e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  margin-right: 8px;
}
.user-menu .user-name {
  color: #333;
  font-weight: 500;
}

@media (max-width: 959px) {
  .uk-navbar-nav > li > a {
    padding: 10px 15px;
    display: block;
  }
  .uk-navbar-nav > li > a::after {
    display: none;
  }
  .uk-navbar-dropdown {
    box-shadow: none;
    border-radius: 0;
  }
}
.uk-card, .toggleable-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border-radius: 6px;
  background: #fff;
  color: #333;
  position: relative;
  overflow: hidden;
}
.uk-card:hover, .toggleable-card:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.uk-card .uk-card-hover:hover, .toggleable-card .uk-card-hover:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.uk-card-default, .toggleable-card {
  background: #fff;
  color: #333;
  border: 1px solid #e5e5e5;
}
.uk-card-default .uk-card-title, .toggleable-card .uk-card-title {
  color: #333;
  font-weight: 600;
  font-size: 1.125rem;
}

.uk-card-primary {
  background: linear-gradient(135deg, #1e5a8e 0%, rgb(21.1046511628, 63.3139534884, 99.8953488372) 100%);
  color: #fff;
  border: none;
}
.uk-card-primary .uk-card-title {
  color: #fff;
}
.uk-card-primary a:not(.uk-button) {
  color: rgba(255, 255, 255, 0.9);
}
.uk-card-primary a:not(.uk-button):hover {
  color: white;
}

.uk-card-secondary {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #e5e5e5;
}
.uk-card-secondary .uk-card-title {
  color: #333;
}

.uk-card-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.uk-card-hover:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

a.uk-card-hover {
  text-decoration: none;
  color: inherit;
}

.uk-card-body, .toggleable-card .toggleable-card-body {
  padding: 30px 30px;
}
.uk-card-body > :last-child, .toggleable-card .toggleable-card-body > :last-child {
  margin-bottom: 0;
}

.uk-card-header, .toggleable-card .toggleable-card-title {
  padding: 20px 30px;
  border-bottom: 1px solid #e5e5e5;
}
.uk-card-header .uk-card-title, .toggleable-card .toggleable-card-title .uk-card-title {
  margin-bottom: 0;
}

.uk-card-footer {
  padding: 20px 30px;
  border-top: 1px solid #e5e5e5;
  background: rgba(0, 0, 0, 0.02);
}

.uk-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}
.uk-card-title [uk-icon] {
  margin-right: 8px;
  vertical-align: middle;
}

.uk-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1;
  padding: 4px 12px;
  background: #1e5a8e;
  color: white;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.uk-card-media-top img,
.uk-card-media-bottom img,
.uk-card-media-left img,
.uk-card-media-right img {
  display: block;
  width: 100%;
  height: auto;
}

.uk-card-media-top {
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.uk-card-media-bottom {
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.uk-card .uk-description-list > dt, .toggleable-card .uk-description-list > dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.uk-card .uk-description-list > dd, .toggleable-card .uk-description-list > dd {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  margin-left: 0;
}
.uk-card .uk-description-list > dd:last-child, .toggleable-card .uk-description-list > dd:last-child {
  margin-bottom: 0;
}

.uk-card-stat {
  text-align: center;
  padding: 30px 20px;
}
.uk-card-stat .stat-value {
  font-size: 2.625rem;
  font-weight: 700;
  color: #1e5a8e;
  margin-bottom: 8px;
  line-height: 1;
}
.uk-card-stat .stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.uk-card-stat .stat-change {
  margin-top: 10px;
  font-size: 0.875rem;
}
.uk-card-stat .stat-change.positive {
  color: #2d7f3e;
}
.uk-card-stat .stat-change.negative {
  color: #c0392b;
}
.uk-card-stat .stat-change [uk-icon] {
  margin-right: 4px;
}

.uk-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.uk-card-actions .uk-button {
  flex: 1;
}

.uk-card-small .uk-card-body, .uk-card-small .toggleable-card .toggleable-card-body, .toggleable-card .uk-card-small .toggleable-card-body {
  padding: 20px;
}
.uk-card-small .uk-card-title {
  font-size: 16px;
}

.uk-card-large .uk-card-body, .uk-card-large .toggleable-card .toggleable-card-body, .toggleable-card .uk-card-large .toggleable-card-body {
  padding: 40px 40px;
}

.project-status-card {
  border-left: 4px solid #1e5a8e;
}
.project-status-card.status-active {
  border-left-color: #2d7f3e;
}
.project-status-card.status-archived {
  border-left-color: #6c757d;
  opacity: 0.8;
}
.project-status-card.status-warning {
  border-left-color: #e67e22;
}

.energy-card .efficiency-rating {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 15px 0;
}
.energy-card .efficiency-rating[data-rating=A], .energy-card .efficiency-rating[data-rating="A+"] {
  background-color: #2d7f3e;
  color: white;
}
.energy-card .efficiency-rating[data-rating=B] {
  background-color: #52c41a;
  color: white;
}
.energy-card .efficiency-rating[data-rating=C] {
  background-color: #faad14;
  color: white;
}
.energy-card .efficiency-rating[data-rating=D] {
  background-color: #e67e22;
  color: white;
}
.energy-card .efficiency-rating[data-rating=E], .energy-card .efficiency-rating[data-rating=F] {
  background-color: #c0392b;
  color: white;
}

.uk-grid-match > * > .uk-card, .uk-grid-match > * > .toggleable-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.uk-grid-match > * > .uk-card .uk-card-body, .uk-grid-match > * > .uk-card .toggleable-card .toggleable-card-body, .toggleable-card .uk-grid-match > * > .uk-card .toggleable-card-body, .uk-grid-match > * > .toggleable-card .uk-card-body, .uk-grid-match > * > .toggleable-card .toggleable-card-body {
  flex: 1;
}

:root {
  --primary-color: #1e87f0;
  --secondary-color: #32d296;
  --danger-color: #f0506e;
  --warning-color: #faa05a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #fafbfc;
  background-image: radial-gradient(ellipse at top, rgba(30, 90, 142, 0.08) 0%, transparent 50%), radial-gradient(ellipse at bottom, rgba(45, 127, 62, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

nav.uk-navbar-container {
  flex-shrink: 0;
}

#main-navbar {
  background-color: #1e5a8e;
  color: white;
}
#main-navbar .uk-navbar-nav > li > a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}
#main-navbar .uk-navbar-nav > li > a:hover {
  color: white;
}
#main-navbar .uk-navbar-nav > li.uk-active > a {
  color: white;
  border-bottom-color: white;
}
#main-navbar .uk-button-text:hover {
  text-decoration: none !important;
}
#main-navbar .uk-navbar-dropdown .uk-button-text {
  width: 100%;
  text-align: left;
  padding: 5px 15px;
}

a.uk-button-text:hover {
  text-decoration: none !important;
}

.uk-button-text {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

main {
  flex: 1;
}

footer {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(135deg, #1e5a8e 0%, rgb(25.5523255814, 76.6569767442, 120.9476744186) 50%, rgb(19.3255813953, 57.976744186, 91.4744186047) 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: 3px solid rgb(43.3430232558, 130.0290697674, 205.1569767442);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}
footer h4 {
  color: #ffffff;
  font-weight: 600;
}
footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  text-decoration: none;
}
footer a:hover {
  color: #86efac;
  transform: translateY(-1px);
}
footer p {
  color: rgba(255, 255, 255, 0.9);
}
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

a {
  color: #1e5a8e;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #164872;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-small, .uk-heading-medium, .uk-heading-large {
  font-weight: 600;
  color: #333;
}

.uk-section {
  background: transparent;
}
.uk-section.uk-section-muted {
  background: #f5f7f9;
}
.uk-section.uk-section-primary {
  background: linear-gradient(135deg, #1e5a8e 0%, rgb(21.1046511628, 63.3139534884, 99.8953488372) 100%);
  color: white;
}

.uk-table {
  font-size: 0.9375rem;
}
.uk-table th {
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.5px;
}
.uk-table th.uk-text-lowercase {
  text-transform: lowercase;
}
.uk-table th.uk-text-none {
  text-transform: none;
}
.uk-table thead th {
  background: #f5f7f9;
  border-bottom: 2px solid #e5e5e5;
}
.uk-table tbody tr {
  transition: background 0.2s ease;
}
.uk-table tbody tr:hover {
  background: #f8f9fa;
}
.uk-table.uk-table-striped tbody tr:nth-of-type(odd) {
  background: #fafafa;
}
.uk-table.uk-table-striped tbody tr:nth-of-type(odd):hover {
  background: rgb(244.9, 244.9, 244.9);
}
.uk-overflow-auto .uk-table::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.uk-overflow-auto .uk-table::-webkit-scrollbar-track {
  background: #f5f7f9;
  border-radius: 4px;
}
.uk-overflow-auto .uk-table::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}
.uk-overflow-auto .uk-table::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.uk-alert {
  border-left: 4px solid;
  border-radius: 4px;
}
.uk-alert.uk-alert-primary {
  border-left-color: #1e5a8e;
}
.uk-alert.uk-alert-success {
  border-left-color: #2d7f3e;
}
.uk-alert.uk-alert-warning {
  border-left-color: #e67e22;
}
.uk-alert.uk-alert-danger {
  border-left-color: #c0392b;
}

.uk-pagination > * > * {
  color: #555;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 5px 12px;
}
.uk-pagination > * > *:hover {
  background: rgba(30, 90, 142, 0.08);
  color: #1e5a8e;
}
.uk-pagination > *.uk-active > * {
  background: #1e5a8e;
  color: white;
}
.uk-pagination > *.uk-disabled > * {
  color: #6c757d;
  opacity: 0.5;
  cursor: not-allowed;
}

.uk-tab {
  border-bottom: 1px solid #e5e5e5;
}
.uk-tab > * > a {
  color: #555;
  padding: 10px 20px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}
.uk-tab > * > a:hover {
  color: #1e5a8e;
  border-bottom-color: rgba(30, 90, 142, 0.3);
}
.uk-tab > *.uk-active > a {
  color: #1e5a8e;
  border-bottom-color: #1e5a8e;
}

#accordion-zones > li {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 15px;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
#accordion-zones > li:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#accordion-zones .uk-accordion-title.accordion-primary {
  background: #1e5a8e;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
#accordion-zones .uk-accordion-title.accordion-primary:hover {
  background: rgb(25.5523255814, 76.6569767442, 120.9476744186);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}
#accordion-zones .uk-accordion-title.accordion-primary::before {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%23fff' stroke-width='1.1' points='1 4 7 10 13 4'%3E%3C/polyline%3E%3C/svg%3E");
}
#accordion-zones .uk-accordion-title.accordion-primary .uk-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggleable-card .toggleable-card-title {
  padding: 15px;
  cursor: pointer;
}
.toggleable-card .toggleable-card-title .toggleable-card-title-content {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggleable-card .toggleable-card-title .toggleable-card-title-content .card-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.toggleable-card .toggleable-card-title .toggleable-card-title-content .card-chevron.rotated {
  transform: rotate(90deg);
}
.toggleable-card .toggleable-card-title .toggleable-card-title-content svg polyline {
  stroke: #fff;
}
.toggleable-card .toggleable-card-title.primary {
  background-color: #1e5a8e;
  color: #fff;
}
.toggleable-card .toggleable-card-title.primary .title-text {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.toggleable-card .toggleable-card-title.primary p.meta-text {
  color: rgba(255, 255, 255, 0.7);
}
.toggleable-card .toggleable-card-title:hover {
  background: rgb(25.5523255814, 76.6569767442, 120.9476744186);
}
.toggleable-card .toggleable-card-body {
  padding: 0px;
}

.energy-demand-value {
  font-size: 2.5rem;
  font-weight: bold;
}
.energy-demand-value.heating {
  color: #c0392b;
}
.energy-demand-value.heating .unit {
  color: rgba(192, 57, 43, 0.67);
}
.energy-demand-value.cooling {
  color: #1e87f0;
}
.energy-demand-value.cooling .unit {
  color: rgba(30, 135, 240, 0.67);
}
.energy-demand-value .unit {
  font-size: 1.25rem;
  font-weight: normal;
}

.uk-text-heating {
  color: #c0392b !important;
}

.uk-text-cooling {
  color: #1e87f0 !important;
}

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

.uk-text-success {
  color: #2d7f3e !important;
}

.uk-text-warning {
  color: #e67e22 !important;
}

.uk-text-danger {
  color: #c0392b !important;
}

.uk-background-primary {
  background: #1e5a8e !important;
  color: white;
}

.uk-background-success {
  background: #2d7f3e !important;
  color: white;
}

.uk-margin-auto-vertical {
  margin-top: auto !important;
  margin-bottom: auto !important;
}

.uk-section-small {
  padding-top: 20px;
  padding-bottom: 20px;
}

.uk-padding-top {
  padding-top: 20px !important;
}

.uk-padding-bottom {
  padding-bottom: 20px !important;
}

.uk-padding-left {
  padding-left: 20px !important;
}

.uk-padding-right {
  padding-right: 20px !important;
}

.uk-padding-small-top {
  padding-top: 10px !important;
}

.uk-padding-small-bottom {
  padding-bottom: 10px !important;
}

.uk-padding-small-left {
  padding-left: 10px !important;
}

.uk-padding-small-right {
  padding-right: 10px !important;
}

.uk-padding-large-top {
  padding-top: 40px !important;
}

.uk-padding-large-bottom {
  padding-bottom: 40px !important;
}

.uk-padding-large-left {
  padding-left: 40px !important;
}

.uk-padding-large-right {
  padding-right: 40px !important;
}

.uk-nav-divider-primary {
  border-top: 1px solid #1e5a8e;
}

*:focus-visible {
  outline: 2px solid #1e5a8e;
  outline-offset: 2px;
}

@media print {
  .uk-navbar,
  .uk-button,
  .no-print {
    display: none !important;
  }
  .uk-card, .toggleable-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  body {
    background: white !important;
  }
}
main {
  display: flex;
  flex-direction: column;
  background: rgba(30, 90, 142, 0.03);
}
main > .uk-grid {
  flex: 1;
  margin: 0;
}
main > .uk-grid > div {
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  background: rgba(30, 90, 142, 0.05);
  border-right: 1px solid rgba(30, 90, 142, 0.2);
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  min-height: 100%;
  position: relative;
}
.sidebar-nav li.uk-nav-divider {
  border-top: 1px solid rgba(30, 90, 142, 0.2);
}
.sidebar-nav li > a:hover {
  background-color: rgba(30, 90, 142, 0.75);
  color: white;
}
.sidebar-nav li > a:hover .uk-nav-subtitle.uk-text-muted {
  color: #bfbfbf !important;
}
.sidebar-nav li.uk-active > a {
  background-color: #1e5a8e;
  color: white;
}
.sidebar-nav li.uk-active > a .uk-nav-subtitle.uk-text-muted {
  color: #bfbfbf !important;
}

.language-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}
.language-selector button {
  padding: 6px 12px;
  border: 1px solid #e5e5e5;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}
.language-selector button:hover {
  border-color: #1e5a8e;
  color: #1e5a8e;
}
.language-selector button.active {
  background: #1e5a8e;
  color: white;
  border-color: #1e5a8e;
}

.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(30, 90, 142, 0.2);
  border-top-color: #1e5a8e;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
}
.empty-state [uk-icon] {
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-state h3 {
  color: #6c757d;
  font-weight: 500;
}

.uk-alert-success {
  animation: slide-in-down 0.3s ease;
}

@keyframes slide-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#location-map,
#location-map-readonly {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
#location-map .leaflet-control-zoom,
#location-map-readonly .leaflet-control-zoom {
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
#location-map .leaflet-control-zoom a,
#location-map-readonly .leaflet-control-zoom a {
  color: #333;
}
#location-map .leaflet-control-zoom a:hover,
#location-map-readonly .leaflet-control-zoom a:hover {
  background-color: #f8f8f8;
}
#location-map .leaflet-popup-content-wrapper,
#location-map-readonly .leaflet-popup-content-wrapper {
  border-radius: 4px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}
#location-map .leaflet-popup-tip,
#location-map-readonly .leaflet-popup-tip {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

#address-autocomplete-dropdown {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-top: 4px;
}
#address-autocomplete-dropdown .uk-list > li {
  transition: background-color 0.2s ease;
}
#address-autocomplete-dropdown .uk-list > li:hover {
  background-color: #f8f8f8;
}
#address-autocomplete-dropdown .autocomplete-item {
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 2px;
  transition: all 0.2s ease;
}
#address-autocomplete-dropdown .autocomplete-item:hover {
  background-color: #f0f0f0;
  padding-left: 16px;
}
#address-autocomplete-dropdown .autocomplete-item:active {
  background-color: #e5e5e5;
}
#address-autocomplete-dropdown .uk-text-muted {
  color: #999;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  #location-map {
    height: 300px !important;
  }
  #location-map-readonly {
    height: 250px !important;
  }
}
.zone-chevron,
.bp-chevron,
.opening-chevron,
.solar-gain-chevron,
.lighting-chevron,
.scenario-chevron {
  transition: transform 0.3s ease;
  display: inline-block;
  margin-right: 8px;
}
.zone-chevron.rotated,
.bp-chevron.rotated,
.opening-chevron.rotated,
.solar-gain-chevron.rotated,
.lighting-chevron.rotated,
.scenario-chevron.rotated {
  transform: rotate(90deg);
}

.button-htmx-indicator {
  display: none;
  opacity: 0;
  transition: opacity 500ms ease-in;
  color: #fff;
}

.button-htmx-request .htmx-indicator {
  display: inline;
  opacity: 1;
}

.button-htmx-request.htmx-indicator {
  display: inline;
  opacity: 1;
}

.zone-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zone-tree-item {
  position: relative;
}

.zone-tree-children {
  margin-left: 0;
  position: relative;
}

.zone-tree-child {
  display: flex;
  align-items: stretch;
  margin-top: 10px;
  position: relative;
}

.zone-tree-connector {
  position: relative;
  width: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
}

.zone-tree-line-vertical {
  position: absolute;
  left: 15px;
  top: -10px;
  bottom: 50%;
  width: 2px;
  background-color: #e5e5e5;
}

.zone-tree-line-horizontal {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 25px;
  height: 2px;
  background-color: #e5e5e5;
  transform: translateY(-50%);
}

.zone-tree-child:not(.zone-tree-child-last) .zone-tree-line-vertical {
  bottom: -10px;
}

.zone-tree-child-last .zone-tree-line-vertical {
  bottom: 50%;
}

.zone-tree-content {
  flex: 1;
  min-width: 0;
}

.detail-row-container {
  position: relative;
  display: flex;
}

.detail-row-connector {
  position: relative;
  width: 40px;
  min-width: 40px;
  flex-shrink: 0;
  border-right: 2px solid #e5e5e5;
}

.detail-row-line-vertical {
  position: absolute;
  left: 20px;
  top: 0;
  height: 50%;
  width: 2px;
  background-color: #e5e5e5;
}

.detail-row-line-horizontal {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background-color: #e5e5e5;
  transform: translateY(-50%);
}

.detail-row-content {
  flex: 1;
  min-width: 0;
}

.zone-table-child {
  background-color: rgba(0, 0, 0, 0.02);
}

.zone-table-indent {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding-left: 15px;
}

.zone-tree-line-horizontal-small {
  display: inline-block;
  width: 15px;
  height: 2px;
  background-color: #e5e5e5;
  margin-right: 5px;
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scenario-comparison-table th, .scenario-comparison-table td {
  vertical-align: middle;
}
.scenario-comparison-table thead tr:first-child th {
  border-bottom: none;
  padding-bottom: 0;
}
.scenario-comparison-table thead tr:last-child th {
  padding-top: 0;
  font-size: 0.85em;
}

.scenario-diff {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.scenario-diff-improved {
  background-color: rgba(50, 210, 150, 0.15);
  color: #1e8a5e;
}

.scenario-diff-improved-high {
  background-color: #1e8a5e;
  color: white;
}

.scenario-diff-worse {
  background-color: rgba(240, 80, 110, 0.15);
  color: #c4384f;
}

.scenario-diff-worse-high {
  background-color: #c4384f;
  color: white;
}
