.spinner-border {
    border-color: #000000 transparent transparent transparent !important;
}

.spinner-border-sm {
    border-color: #000000 transparent transparent transparent !important;
}

.sidebar {
    position: sticky;
    top: 0;
    height: calc(100vh - 76px);
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    background-color: #f8f9fa !important;
}


main {
    min-height: calc(100vh - 76px);
    background-color: #f8f9fa;
}

.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Navbar box-shadow je v navbar.css */

.navbar-brand {
    font-weight: 600;
}

.navbar-brand-custom {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.navbar .lucide {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease-in-out;
}

.navbar button {
    border: none;
    background: transparent;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    padding: 0.5rem;
    margin: 0 0.25rem;
}

.navbar button:hover {
    background-color: #f8f9fa;
    color: #495057;
    transform: translateY(-1px);
}

.navbar button:active {
    transform: translateY(0);
}

.navbar button:focus {
    outline: 2px solid #e9ecef;
    outline-offset: 2px;
}

.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    background-color: #ffffff;
    border: 2px solid #e9ecef;
    border-bottom: 2px solid #ffffff;
    color: #495057;
    font-weight: 600;
    margin-bottom: -2px;
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-outline-primary:hover {
    color: #ffffff;
}

.btn-outline-secondary:hover {
    color: #ffffff;
}


.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

.card-header.bg-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd;
}

.toast-container {
    z-index: 1100;
}

.toast {
    border: 1px solid #e9ecef;
}


#gemini-response {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}


html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    width: 100%;
    background-color: transparent !important;
    border-top: none !important;
    pointer-events: none;
    z-index: 10;
}

body:not(.landing-page) .footer {
    margin-top: auto;
}



.footer .container {
    pointer-events: auto;
}

.footer-item {
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: default;
    font-weight: 500;
    display: inline-block;
}

.footer-item:hover {
    color: #000000;
    transform: translateY(-1px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-link {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.footer-link:hover,
.footer-link:focus,
.footer-link:visited {
    text-decoration: none !important;
    color: inherit;
}


.alert {
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}


.badge {
    font-size: 0.75em;
}


@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    main {
        min-height: auto;
    }

    .card-body {
        padding: 1rem;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Global Application Styles - AITrading */

/* AI Toggle Switch Styling - v globálním CSS pro jistotu načítání */
button#aiToggle {
    position: relative !important;
    width: 2.5rem !important;
    height: 1.25rem !important;
    background-color: #212529 !important;
    border: none !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.1rem !important;
    margin: 0 !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

button#aiToggle:hover {
    background-color: #000000 !important;
}

button#aiToggle[data-state="unchecked"] {
    background-color: #6c757d !important;
}

button#aiToggle[data-state="unchecked"]:hover {
    background-color: #5c636a !important;
}

button#aiToggle span {
    width: 1rem !important;
    height: 1rem !important;
    background-color: white !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.3s ease !important;
    transform: translateX(1.25rem) !important;
    pointer-events: none !important;
    display: block !important;
    position: relative !important;
}

button#aiToggle[data-state="unchecked"] span {
    transform: translateX(0) !important;
}

button#aiToggle:focus {
    outline: 1px solid #495057 !important;
    outline-offset: 1px !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(33, 37, 41, 0.1) !important;
}

button#aiToggle:active span {
    width: 1.1rem !important;
}
