body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.content-wrapper {
    min-height: calc(100vh - 70px);
}

/* =========================
   NAVBAR / ЛОГОТИП
========================= */

.talon-main-navbar {
    min-height: 68px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}

.talon-main-navbar .container-fluid {
    display: flex;
    align-items: center;
    gap: 12px;
}

.talon-navbar-brand {
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    text-decoration: none !important;
    margin-right: 0 !important;
}

.talon-logo-box {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;

    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
}

.talon-logo-img,
.talon-logo-box img {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    max-width: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    display: block !important;
    object-fit: contain !important;
    flex: 0 0 25px !important;
    box-sizing: border-box !important;
}

.talon-brand-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    line-height: 1.1 !important;
    min-width: 0 !important;
}

.talon-brand-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
}

.talon-brand-subtitle {
    margin-top: 2px !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    white-space: nowrap !important;
}

/* =========================
   ОБЩИЕ ЭЛЕМЕНТЫ
========================= */

.footer {
    background-color: #343a40;
    color: white;
    padding: 15px 0;
    margin-top: auto;
}

.alert {
    border-radius: 8px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.dropdown-item form {
    margin: 0;
}

.dropdown-item button {
    border: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    text-align: left;
}

/* =========================
   LOGIN THEME
========================= */

.login-theme-btn {
    border: 0;
    cursor: pointer;
}

/* Кнопка темы в правой части navbar */
.navbar-theme-btn {
    position: static !important;

    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;

    padding: 0 !important;

    border-radius: 13px !important;
    border: 1px solid rgba(255,255,255,0.28) !important;

    background: rgba(255,255,255,0.14) !important;
    color: #ffffff !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20) !important;

    transition:
        transform .15s ease,
        background .15s ease,
        border-color .15s ease !important;
}

.navbar-theme-btn:hover {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.40) !important;
    transform: translateY(-1px) !important;
}

.navbar-theme-btn i {
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

body.login-theme-light {
    background: #f8f9fa !important;
    color: #111827 !important;
}

body.login-theme-dark {
    background:
        radial-gradient(900px 320px at 20% -10%, rgba(37, 99, 235, .22), transparent 60%),
        #111827 !important;
    color: #f8fafc !important;
}

body.login-theme-dark .content-wrapper {
    background: transparent !important;
}

body.login-theme-dark .footer {
    background-color: #0f172a !important;
    color: rgba(255,255,255,0.75) !important;
}

body.login-theme-dark .card {
    background: #1f2937 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.login-theme-dark .card-header {
    background: #0f172a !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body.login-theme-dark .form-label {
    color: #f8fafc !important;
}

body.login-theme-dark .form-control {
    background: #eaf2ff !important;
    color: #111827 !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body.login-theme-dark .form-control::placeholder {
    color: rgba(17, 24, 39, 0.55) !important;
}

body.login-theme-dark hr {
    border-color: rgba(255, 255, 255, 0.18) !important;
    opacity: 1 !important;
}

/* =========================
   АДАПТИВ
========================= */

@media (max-width: 576px) {
    .talon-navbar-brand {
        gap: 8px !important;
        max-width: calc(100vw - 100px) !important;
    }

    .talon-logo-box {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        flex: 0 0 34px !important;
        border-radius: 11px !important;
    }

    .talon-logo-img,
    .talon-logo-box img {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px !important;
        max-width: 21px !important;
        min-height: 21px !important;
        max-height: 21px !important;
        flex: 0 0 21px !important;
    }

    .talon-brand-title {
        font-size: 14px !important;
        max-width: 180px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .talon-brand-subtitle {
        display: none !important;
    }

    .navbar-theme-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 12px !important;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
    }

    .navbar-theme-btn i {
        font-size: 17px !important;
    }
}

