/* Dodoma Kadi Kidigitali - login logo + white sidebar polish
   Safe UI-only override. Does not touch card generation, QR, SMS/WhatsApp, or template editor logic. */

/* Login: keep logo only on the right login card. */
.dkk-auth-brand-panel-no-logo > .dkk-brand-logo,
.dkk-auth-brand-panel > .dkk-brand-logo {
    display: none !important;
}

.dkk-auth-card-head .dkk-brand-logo,
.dkk-auth-card .dkk-brand-logo {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1.4rem;
}

.dkk-auth-card-head .dkk-brand-logo img,
.dkk-auth-card .dkk-brand-logo img {
    width: min(260px, 70vw) !important;
    height: auto !important;
    max-height: 92px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Admin sidebar: white panel with soft green/white top glow for better logo visibility. */
.dkk-admin-modern .admin-sidebar {
    position: sticky;
    overflow: hidden;
    color: #0f172a !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(15, 118, 110, .18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f0fdfa 32%, #ffffff 100%) !important;
    border-right: 1px solid rgba(15, 118, 110, .12);
    box-shadow: 14px 0 44px rgba(15, 23, 42, .06), inset -1px 0 0 rgba(15, 118, 110, .06) !important;
}

.dkk-admin-modern .admin-sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 190px;
    background:
        radial-gradient(circle at 18% 12%, rgba(212, 175, 55, .24), transparent 34%),
        linear-gradient(135deg, rgba(6, 95, 70, .16), rgba(255, 255, 255, .88) 70%);
    pointer-events: none;
}

.dkk-admin-modern .sidebar-brand,
.dkk-admin-modern .sidebar-nav,
.dkk-admin-modern .sidebar-footer {
    position: relative;
    z-index: 1;
}

.dkk-admin-modern .dkk-sidebar-brand {
    margin-bottom: 1.25rem;
    padding: .95rem;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(236, 253, 245, .96));
    border: 1px solid rgba(15, 118, 110, .14);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.dkk-admin-modern .dkk-sidebar-brand .dkk-brand-logo,
.dkk-admin-modern .dkk-sidebar-logo-only {
    width: 100%;
    justify-content: center;
}

.dkk-admin-modern .dkk-sidebar-brand .dkk-brand-logo img,
.dkk-admin-modern .dkk-sidebar-logo-only img {
    width: min(220px, 100%) !important;
    height: auto !important;
    max-height: 78px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dkk-admin-modern .sidebar-nav a {
    color: #17443b !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(15, 118, 110, .10) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
}

.dkk-admin-modern .sidebar-nav a span {
    color: #0f172a !important;
    font-weight: 900;
}

.dkk-admin-modern .sidebar-nav a small {
    color: #64748b !important;
    font-weight: 750;
}

.dkk-admin-modern .sidebar-nav a:hover,
.dkk-admin-modern .sidebar-nav a.is-active {
    transform: translateX(3px);
    background: linear-gradient(135deg, #0f766e, #065f46) !important;
    border-color: rgba(15, 118, 110, .24) !important;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .22);
}

.dkk-admin-modern .sidebar-nav a:hover span,
.dkk-admin-modern .sidebar-nav a.is-active span {
    color: #ffffff !important;
}

.dkk-admin-modern .sidebar-nav a:hover small,
.dkk-admin-modern .sidebar-nav a.is-active small {
    color: rgba(255, 255, 255, .78) !important;
}

.dkk-admin-modern .sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #065f46, #0f766e);
    box-shadow: 0 16px 36px rgba(15, 118, 110, .22);
}

.dkk-admin-modern .sidebar-footer p {
    color: rgba(255, 255, 255, .78) !important;
}

.dkk-admin-modern .sidebar-chip {
    color: #065f46;
    background: rgba(255, 255, 255, .92);
}

@media (max-width: 991px) {
    .dkk-admin-modern.dkk-sidebar-open .admin-sidebar {
        background:
            radial-gradient(circle at 18% 0%, rgba(15, 118, 110, .18), transparent 30%),
            linear-gradient(180deg, #ffffff 0%, #f0fdfa 32%, #ffffff 100%) !important;
    }
}

/* v2 sidebar restore after Events UI patch: force the approved white sidebar look. */
.dkk-admin-modern .admin-sidebar {
    background:
        radial-gradient(circle at 18% 0%, rgba(15, 118, 110, .18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f0fdfa 32%, #ffffff 100%) !important;
    color: #0f172a !important;
}
.dkk-admin-modern .dkk-sidebar-brand .dkk-brand-logo img,
.dkk-admin-modern .dkk-sidebar-logo-only img {
    width: min(230px, 100%) !important;
    height: auto !important;
    max-height: 82px !important;
    min-height: 54px !important;
    object-fit: contain !important;
}
