html{
    font-size: 14px;
}

:root {
    --aik-hover-surface: #f1f3f5;
    --aik-pressed-surface: #e9ecef;
    --aik-active-surface: #eef2ff;
    --aik-active-color: #4758b8;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.validation-summary-errors ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.validation-summary-errors {
    background-color: #fdecea;
    border-left: 4px solid #dc3545;
    padding: 10px;
    border-radius: 4px;
}

.alert.alert-danger {
    background-color: #fdecea;
    border-left: 4px solid #dc3545;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px;
    border-radius: 4px;
}

.page-instruction {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #6c757d;
    max-width: 480px;
}

/*body {
    margin-bottom: 60px;
}*/

.app-body {
    min-height: 100vh;
    background-color: #f4f6f9;
}
/*
.app-header {
    background-color: #1f2d3d;
}
*/
.app-header .navbar-brand,
.app-header .nav-link {
    color: #4758B8;
}

.app-header .nav-link:hover,
.app-header .navbar-brand:hover {
    border: 1px solid #4758B8;
    border-radius: 8px;
}

.app-shell {
    display: flex;
    min-height: calc(100vh - 64px);
}

.app-sidebar {
    width: 260px;
    background-color: #343a40;
    padding: 1.5rem 1rem;
}

.app-content {
    flex: 1;
    padding: 2rem;
    background-color: #ffffff;
}

.app-footer {
    padding: 0.75rem 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
}

.sidebar-nav .nav-link {
    color: #c2c7d0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;    
}

.auth-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
}

.registration-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    background-color: #fff;
}

.registration-section .section-header {
    border-bottom: 1px solid #f1f3f5;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.auth-brand .brand-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2d3d;
}

.auth-language-switch {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.auth-language-switch .lang-btn {
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    margin-left: 6px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.auth-language-switch .lang-btn:hover {
    background-color: #f1f3f5;
    color: #000;
}

.auth-language-switch .lang-btn.active {
    background-color: #0d6efd; /* Bootstrap primary */
    border-color: #0d6efd;
    color: #fff;
    cursor: default;
}

/* Mobile friendliness */
@media (max-width: 576px) {
    .auth-language-switch {
        justify-content: center;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .registration-section {
        padding: 1.25rem 1rem;
    }
}

.ColorAIKeeperText {
    color: #454eb3 !important;
}

.ColorAIKeeperButton {
    background-color: #454eb3 !important;
    border-color: #454eb3 !important;
}

.ColorAIKeeperButton:hover {
    background-color: #fff !important;
    border-color: #454eb3 !important;
    color: #454eb3 !important;
}

/* Top menu container */
.app-top-menu .nav-link {
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

    /* Hover effect */
    .app-top-menu .nav-link:hover {
        color: inherit;
    }

    /* Active link */
    .app-top-menu .nav-link.active {
        color: var(--aik-active-color);
        background-color: var(--aik-active-surface);
        border-radius: 0.375rem;
        font-weight: 600;
    }

/* Dropdown styling */
.dropdown-menu {
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

    .dropdown-item:hover {
        background-color: var(--aik-hover-surface);
    }

/* Optional: adjust company dropdown width to match language */
.navbar-nav .dropdown-menu button.dropdown-item {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Reduce spacing between stacked nav items on mobile */
/*.navbar-nav li {
    margin-bottom: 0.25rem;
}*/

.aik-required-field:after{
    content: '*';
    color: #DC3545;
}

.disabled-nav {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.AIKeeperDropdown {
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.AIKeeperDropdown:hover,
.AIKeeperDropdown:focus-within {
    border-color: #ced4da;
}

.text-align-right {
    text-align: right;
}

.aik-date-trigger svg {
    width: 1rem;
    height: 1rem;
}

.aik-date-native-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    border: 0;
    padding: 0;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
    border: none !important; 
    box-shadow: none !important; 
    background-color: transparent !important; 
    color: inherit !important; 
    border-radius: 0.375rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    border: none !important;
    box-shadow: none !important;
    background-color: var(--aik-hover-surface) !important;
    color: inherit !important;
}

.navbar-nav .nav-link:active,
.navbar-nav .dropdown-item:active {
    background-color: var(--aik-pressed-surface) !important;
    color: inherit !important;
}

.navbar-nav .nav-link.active {
    background-color: var(--aik-active-surface) !important;
    color: var(--aik-active-color) !important;
    font-weight: 600;
}

.navbar-nav .dropdown-item.active {
    background-color: var(--aik-active-surface) !important;
    color: #212529 !important;
    font-weight: 600;
}

.navbar-nav .nav-link:focus-visible,
.navbar-nav .dropdown-item:focus-visible {
    outline: 2px solid var(--aik-active-color);
    outline-offset: 2px;
}

@media (max-width: 991.98px) {
    .app-shell {
        min-height: calc(100vh - 56px);
    }

    .app-content {
        padding: 1rem;
        background-color: #f4f6f9;
    }

    .app-header .navbar-collapse {
        padding-top: 0.5rem;
    }

    .app-top-menu {
        width: 100%;
    }

    .app-top-menu .nav-item {
        width: 100%;
    }

    .app-top-menu .dropdown-menu {
        width: 100%;
        max-width: 100%;
    }

    .app-primary-nav > .AIKeeperDropdown {
        width: fit-content;
    }

    .app-utility-nav {
        width: auto;
        margin-left: 0;
    }

    .app-utility-nav li {
        margin-bottom: 0;
    }

    .app-utility-nav .nav-item,
    .app-utility-nav .AIKeeperDropdown {
        width: auto;
    }

    .app-utility-nav .nav-link {
        display: inline-flex;
        align-items: center;
        width: auto;
        white-space: nowrap;
    }
}


@media (min-width: 992px) {
    .navbar-nav li {
        margin-bottom: 0;
    }
}

.aik-business-banners {
    padding: 0 0 1rem;
}

.aik-business-banner {
    width: 100%;
    max-height: var(--aik-banner-max-height, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aik-business-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: var(--aik-banner-max-height, 300px);
    object-fit: contain;
}

.aik-business-banner-cta {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.aik-business-banner-cta a{
    min-width: 120px;
}

.aik-business-advertisement-modal .modal-dialog {
    max-width: var(--aik-advertisement-modal-width, 500px);
}

.aik-business-advertisement-modal .modal-content {
    border: 0;
    border-radius: 0.5rem;
    overflow: visible;
}

.aik-business-advertisement-close {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(-5%, -115%);
    z-index: 30;
    width: 35px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #000;
    color: #fff;
    font-size: 19pt;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter 0.15s ease-in-out;
}

.aik-business-advertisement-close:hover {
    filter: brightness(0.92);
}

.aik-business-advertisement-media {
    position: relative;
    width: 100%;
    background: var(--bs-secondary-bg);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.aik-business-advertisement-media video,
.aik-business-advertisement-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.aik-business-advertisement-media iframe {
    pointer-events: none;
}

.aik-business-advertisement-cta {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -10%);
    z-index: 30;
}

.aik-business-advertisement-cta a {
    min-width: 120px;
}

.aik-business-advertisement-cta-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--bs-body-color);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.aik-business-advertisement-cta-button:hover {
    background: var(--bs-secondary-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aik-business-advertisement-cta-button.prev {
    left: 10px;
}

.aik-business-advertisement-cta-button.next {
    right: 10px;
}

@media (max-width: 768px) {
    .aik-business-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .aik-business-advertisement-modal .modal-dialog {
        max-width: calc(100% - 1rem);
    }
}
