html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffffff;
    color: #111111;
    min-height: 100vh;
}

body .uk-navbar-container {
    background-color: #ffffff;
}

body.uk-light {
    background-color: #2a2a2a;
    color: #f5f5f5;
}

body.uk-light .uk-navbar-container {
    background-color: #181818;
    border-bottom: 1px solid #3a3a3a;
}

body.uk-light .uk-navbar-container .uk-navbar-nav > li > a,
body.uk-light .uk-navbar-container .otm-link,
body.uk-light .uk-navbar-container .uk-logo {
    color: #ffffff;
}

.uk-navbar-container .otm-link:hover {
    color: #1e87f0;
}

body.uk-light .uk-navbar-container .otm-link:hover {
    color: #1e87f0;
}

body.uk-light .uk-card-default {
    background-color: #242424;
    border-color: #3a3a3a;
    color: #f5f5f5;
}

body.uk-light .uk-card-default .uk-card-title {
    color: #ffffff;
}

body.uk-light .uk-card-default .uk-input,
body.uk-light .uk-card-default .uk-textarea,
body.uk-light .uk-card-default .uk-select {
    background-color: #111111;
    color: #f5f5f5;
    border-color: #444444;
}

body.uk-light .uk-card-default .uk-input::placeholder,
body.uk-light .uk-card-default .uk-textarea::placeholder {
    color: #888888;
}

body.uk-light .uk-card-default pre {
    background-color: #1a1a1a;
    color: #f5f5f5;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
}

body.uk-light .uk-modal-dialog {
    background-color: #242424;
    color: #f5f5f5;
    border: 1px solid #3a3a3a;
}

body.uk-light .uk-modal-dialog .uk-modal-title {
    color: #ffffff;
}

body.uk-light .uk-modal-dialog .uk-input,
body.uk-light .uk-modal-dialog .uk-textarea,
body.uk-light .uk-modal-dialog .uk-select {
    background-color: #1a1a1a;
    color: #f5f5f5;
    border-color: #444444;
}

body.uk-light .uk-modal-dialog .uk-input::placeholder,
body.uk-light .uk-modal-dialog .uk-textarea::placeholder {
    color: #888888;
}

body.uk-light .uk-table-striped > tbody > tr:nth-of-type(odd):hover,
body.uk-light .uk-table-hover > tbody > tr:hover {
    background-color: #1f8f6b !important;
}

body.uk-light .uk-table-striped > tbody > tr:nth-of-type(odd):hover a:not(.uk-button),
body.uk-light .uk-table-hover > tbody > tr:hover a:not(.uk-button) {
    color: #f5f5f5;
}

.uk-button-default.otm-blue-hover:hover {
    color: #1e87f0;
    border-color: #1e87f0;
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none !important;
}

/* Navbar */
.otm-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.otm-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.otm-brand-text {
    margin-left: 0.5rem;
    font-weight: 600;
}

.otm-brand-text .version {
    font-weight: 400;
}

.otm-search {
    flex: 1 1 220px;
    max-width: 320px;
}

.otm-search input {
    width: 100%;
}

.otm-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.otm-link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.uk-table .otm-row-index {
    vertical-align: middle;
}

.otm-row-actions {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile-Layout */
@media (max-width: 640px) {
    .otm-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .otm-search {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin-bottom: 0;
    }

    .otm-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-top: 0.25rem;
    }

    .otm-row-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
