/* ==========================================================================
   UIkit Compatibility Layer - Lightweight replacement for UIkit CSS
   Only implements classes actually used in the project
   ========================================================================== */

/* ---- Box Sizing Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
ul, ol { padding: 0; list-style: none; }
ul ul, ol ol { list-style: none; }

/* ---- Link Reset (UIkit default) ---- */
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* ---- Container ---- */
.uk-container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; }
.uk-container-small { max-width: 900px; }

/* ---- Section ---- */
.uk-section { padding-top: 40px; padding-bottom: 40px; }
.uk-section-default { background: #fff; }
.uk-section-secondary { background: #222; color: rgba(255,255,255,.7); }
.uk-section-secondary a { color: #fff; }

/* ---- Grid ---- */
[uk-grid], .uk-grid {
  display: flex;
  flex-wrap: wrap;
  margin-left: -30px;
  margin-top: -30px;
}
[uk-grid] > *, .uk-grid > * {
  padding-left: 30px;
  padding-top: 30px;
  box-sizing: border-box;
}
.uk-grid-large { margin-left: -50px; margin-top: -50px; }
.uk-grid-large > * { padding-left: 50px; padding-top: 50px; }
.uk-grid-small { margin-left: -15px; margin-top: -15px; }
.uk-grid-small > * { padding-left: 15px; padding-top: 15px; }
.uk-grid-match { align-items: stretch; }
.uk-height-1-1 { height: 100%; }

/* ---- Child Width ---- */
.uk-child-width-1-1 > * { width: 100%; }
.uk-child-width-1-1\@s > * { width: 100%; }
.uk-child-width-1-2 > * { width: 50%; }

@media (min-width: 640px) {
  .uk-child-width-1-1\@s > * { width: 100%; }
}
@media (min-width: 960px) {
  .uk-child-width-1-2\@m > * { width: 50%; }
  .uk-child-width-1-3\@m > * { width: 33.333%; }
}

/* ---- Width ---- */
.uk-width-1-1 { width: 100%; }
.uk-width-auto { width: auto; }
.uk-width-expand { flex: 1; min-width: 1px; }

/* ---- Navbar ---- */
.uk-navbar-container {
  background: #fff;
  position: relative;
  z-index: 980;
}
[uk-navbar]:not(.swoopex-header-nav) { display: flex; align-items: center; }
.swoopex-header-nav { display: flex; align-items: center; }
.uk-navbar-left { display: flex; align-items: center; flex: 1; }
.uk-navbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.uk-navbar-item { display: flex; align-items: center; }

/* ---- Dropdown ---- */
[uk-dropdown] {
  display: none;
  position: absolute;
  z-index: 1020;
  box-sizing: border-box;
  min-width: 150px;
  padding: 15px;
  background: #fff;
  color: #333;
  box-shadow: 0 5px 20px rgba(0,0,0,.12);
  border-radius: 4px;
  top: 100%;
  left: 0;
}
[uk-dropdown].uk-open { display: block; }
.uk-dropdown-nav { list-style: none; margin: 0; padding: 0; }
.uk-dropdown-nav li { margin: 0; }
.uk-dropdown-nav a { display: block; padding: 5px 0; color: #333; text-decoration: none; }
.uk-dropdown-nav a:hover { color: #666; }

/* ---- Nav ---- */
.uk-nav { list-style: none; margin: 0; padding: 0; }

/* ---- Button ---- */
.uk-button {
  display: inline-block;
  box-sizing: border-box;
  padding: 0 30px;
  vertical-align: middle;
  font-size: 14px;
  line-height: 38px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: .1s ease-in-out;
  font-family: inherit;
}
.uk-button-text {
  padding: 0;
  line-height: 1.5;
  background: none;
  border: none;
  color: inherit;
  text-transform: none;
  font-size: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.uk-button-primary {
  background: #1e87f0;
  color: #fff;
  border-color: transparent;
}
.uk-button-primary:hover { background: #0f7ae5; color: #fff; }
.uk-button-secondary {
  background: #222;
  color: #fff;
  border-color: transparent;
}
.uk-button-secondary:hover { background: #151515; color: #fff; }
.uk-button-default {
  background: transparent;
  color: #333;
  border-color: #e5e5e5;
}
.uk-button-large {
  padding: 0 40px;
  line-height: 50px;
  font-size: 16px;
}

/* ---- Card ---- */
.uk-card { position: relative; box-sizing: border-box; transition: box-shadow .1s ease-in-out; }
.uk-card-body { padding: 30px; }
.uk-card-header { padding: 15px 30px; border-bottom: 1px solid #e5e5e5; }
.uk-card-default { background: #fff; color: #333; box-shadow: 0 2px 8px rgba(0,0,0,.08); border-radius: 8px; }
.uk-card-primary { background: #1e87f0; color: #fff; border-radius: 8px; }
.uk-card-secondary { background: #222; color: #fff; border-radius: 8px; }
.uk-card-hover:hover { box-shadow: 0 8px 25px rgba(0,0,0,.12); }
.uk-card-title { font-size: 1.4rem; font-weight: 700; line-height: 1.4; }

/* ---- Alert ---- */
[uk-alert], .uk-alert {
  position: relative;
  margin-bottom: 20px;
  padding: 15px 29px 15px 15px;
  background: #f8f8f8;
  color: #333;
  border-radius: 4px;
}
.uk-alert-primary { background: #d8eafc; color: #1e87f0; }
.uk-alert-warning { background: #fef5e2; color: #f0b11e; }
.uk-alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: .4;
}
.uk-alert-close:hover { opacity: 1; }

/* ---- Accordion ---- */
.uk-accordion { list-style: none; margin: 0; padding: 0; }
.uk-accordion > li { margin-top: 0; }
.uk-accordion > li + li { margin-top: 20px; }
.uk-accordion-title {
  display: block;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  overflow: hidden;
  font-weight: 600;
  padding: 10px 0;
  position: relative;
}
.uk-accordion-title::before {
  content: '';
  width: 1.4em;
  height: 1.4em;
  float: right;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline fill='none' stroke='%23333' stroke-width='1.5' points='3 6 10 13 17 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transition: transform .3s ease;
}
.uk-open > .uk-accordion-title::before {
  transform: rotate(180deg);
}
.uk-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
  padding: 0;
  margin-top: 0;
}
.uk-accordion-content > * {
  overflow: hidden;
  min-height: 0;
}
.uk-open > .uk-accordion-content {
  grid-template-rows: 1fr;
}

/* ---- Form ---- */
.uk-input, .uk-select, .uk-textarea {
  box-sizing: border-box;
  margin: 0;
  border-radius: 0;
  font: inherit;
  color: #333;
  width: 100%;
  padding: 0 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
  transition: .2s ease-in-out;
  transition-property: color, background-color, border;
  height: 40px;
}
.uk-textarea { height: auto; padding: 6px 10px; }
.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: #1e87f0;
}
.uk-form-label {
  display: block;
  margin-bottom: 5px;
  font-size: .875rem;
  color: #333;
}
.uk-form-stacked .uk-form-label { display: block; }
.uk-form-danger, .uk-form-danger:focus { color: #f0506e; border-color: #f0506e !important; }
.uk-form-success, .uk-form-success:focus { color: #32d296; border-color: #32d296 !important; }

/* ---- Spinner ---- */
[uk-spinner] {
  display: inline-block;
  width: 30px;
  height: 30px;
}
[uk-spinner]::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid #e5e5e5;
  border-top-color: #333;
  border-radius: 50%;
  animation: uk-spin 1s linear infinite;
}
[uk-spinner="ratio:2"] { width: 60px; height: 60px; }
@keyframes uk-spin { to { transform: rotate(360deg); } }

/* ---- Table ---- */
.uk-table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 20px;
}
.uk-table th, .uk-table td {
  padding: 16px 12px;
  vertical-align: top;
  text-align: left;
}
.uk-table th { font-weight: 700; }
.uk-table-divider > tr:not(:first-child), .uk-table-divider > :not(:first-child) > tr, .uk-table-divider > :first-child > tr:not(:first-child) {
  border-top: 1px solid #e5e5e5;
}
.uk-table-striped tbody tr:nth-of-type(odd) { background: #f8f8f8; }
.uk-table-small th, .uk-table-small td { padding: 10px 12px; }

/* ---- List ---- */
.uk-list { list-style: none; margin: 0; padding: 0; }
.uk-list > li:nth-child(n+2) { margin-top: 10px; }
.uk-list-bullet > li { position: relative; padding-left: 20px; }
.uk-list-bullet > li::before { content: '•'; position: absolute; left: 0; color: #333; }
.uk-list-disc { list-style-type: disc; padding-left: 20px; }
.uk-list-decimal { list-style-type: decimal; padding-left: 20px; }

/* ---- Heading ---- */
.uk-heading-medium { font-size: 2.2rem; line-height: 1.2; font-weight: 700; }
.uk-heading-small { font-size: 1.6rem; line-height: 1.2; font-weight: 700; }

/* ---- Label ---- */
.uk-label {
  display: inline-block;
  padding: 0 10px;
  background: #1e87f0;
  line-height: 1.5;
  font-size: .75rem;
  color: #fff;
  vertical-align: middle;
  white-space: nowrap;
  border-radius: 2px;
  text-transform: uppercase;
}
.uk-label-success { background: #32d296; }

/* ---- Text Utilities ---- */
.uk-text-center { text-align: center !important; }
.uk-text-large { font-size: 1.5rem; line-height: 1.5; }
.uk-text-lead { font-size: 1.25rem; line-height: 1.5; color: #333; }
.uk-text-muted { color: #999 !important; }
.uk-text-small { font-size: .875rem; line-height: 1.5; }
.uk-text-bold { font-weight: 700 !important; }
.uk-text-primary { color: #1e87f0 !important; }
.uk-text-secondary { color: #222 !important; }
.uk-text-meta { font-size: .875rem; line-height: 1.5; color: #999; }
.uk-text-danger { color: #f0506e !important; }

/* ---- Margin Utilities ---- */
.uk-margin { margin-bottom: 20px; }
.uk-margin-top { margin-top: 20px !important; }
.uk-margin-bottom { margin-bottom: 20px !important; }
.uk-margin-small-top { margin-top: 10px !important; }
.uk-margin-small-bottom { margin-bottom: 10px !important; }
.uk-margin-small-right { margin-right: 10px !important; }
.uk-margin-medium { margin-bottom: 40px; }
.uk-margin-medium-top { margin-top: 40px !important; }
.uk-margin-large { margin-bottom: 70px; }
.uk-margin-large-top { margin-top: 70px !important; }
.uk-margin-large-bottom { margin-bottom: 70px !important; }
.uk-margin-remove-top { margin-top: 0 !important; }
.uk-margin-remove-bottom { margin-bottom: 0 !important; }

/* ---- Padding Utilities ---- */
.uk-padding-small { padding: 15px; }
.uk-padding-remove { padding: 0 !important; }

/* ---- Flex Utilities ---- */
.uk-flex-middle { align-items: center !important; }

/* ---- Visibility ---- */
@media (max-width: 959px) {
  .uk-visible\@m { display: none !important; }
}

/* ---- Inline ---- */
.uk-inline { display: inline-block; position: relative; max-width: 100%; vertical-align: middle; }

/* ---- Light ---- */
.uk-light { color: rgba(255,255,255,.7); }
.uk-light a { color: #fff; }

/* ---- Link ---- */
.uk-link-muted, .uk-link-muted a { color: #999; text-decoration: none; }
.uk-link-muted:hover, .uk-link-muted a:hover { color: #666; text-decoration: none; }
.uk-link-text, .uk-link-text a { color: inherit; text-decoration: none; }
.uk-link-text:hover, .uk-link-text a:hover { color: #999; text-decoration: none; }

/* ---- Animation ---- */
.uk-animation-slide-bottom-small {
  animation: uk-slide-bottom-small .3s ease-out;
}
@keyframes uk-slide-bottom-small {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Icon (uk-icon spans) ---- */
[uk-icon] {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}
[uk-icon] svg {
  display: block;
}

/* ---- Icon Button ---- */
.uk-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f8f8f8;
  color: #999;
  transition: .1s ease-in-out;
  border: none;
  cursor: pointer;
}
.uk-icon-button:hover { background: #e5e5e5; color: #666; }

/* ---- Notification (structure) ---- */
/* Note: Most notification styles are already in style.css */

/* ---- hr ---- */
hr, .uk-hr {
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ---- Print-safe ---- */
@media print {
  .uk-notification { display: none !important; }
}
