/* =========================================================
   AMAKA FINANCE
   SIDEBAR - REDESIGN
========================================================= */

.amaka-app {
    min-height: 100vh;
}

/* =========================================================
   SIDEBAR
========================================================= */

.amaka-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 230px;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(circle at 15% 0%, rgba(45, 212, 191, .12), transparent 28%),
        linear-gradient(180deg, #073f3c 0%, #063532 55%, #052d2b 100%);

    border-right: 1px solid rgba(255, 255, 255, .06);

    box-shadow: 12px 0 35px rgba(15, 23, 42, .08);

    z-index: 1000;
}

/* =========================================================
   BRAND
========================================================= */

.amaka-sidebar-brand {
    min-height: 82px;
    height: 82px;

    padding: 0 18px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, .08);

    overflow: hidden;
}

.amaka-sidebar-logo {
    display: block;

    width: 34px;
    height: 46px;

    flex: 0 0 34px;

    margin-right: 12px;

    object-fit: contain;
    object-position: center;

    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .10));
}

.amaka-sidebar-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amaka-brand-name {
    color: #ffffff;

    font-size: 19px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: 1.4px;
}

.amaka-brand-company {
    margin-top: 5px;

    color: rgba(204, 251, 241, .66);

    font-size: 6.5px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: .75px;

    white-space: nowrap;
}

/* fallback logo */

.amaka-brand-icon {
    width: 32px;
    height: 36px;

    position: relative;

    flex: 0 0 32px;

    margin-right: 12px;
}

.amaka-brand-icon span {
    position: absolute;

    width: 8px;
    height: 27px;

    background: #5eead4;

    transform: skew(-25deg);

    border-radius: 2px;
}

.amaka-brand-icon span:first-child {
    left: 5px;
    top: 6px;
}

.amaka-brand-icon span:last-child {
    left: 15px;
    top: 1px;

    background: #a7f3d0;
}

/* =========================================================
   NAVIGATION
========================================================= */

.amaka-sidebar-nav {
    padding: 20px 12px 18px;

    flex: 1;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
}

.amaka-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.amaka-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 20px;
}

.amaka-nav-label {
    padding: 0 12px;

    margin-bottom: 8px;

    color: rgba(204, 251, 241, .45);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.25px;

    text-transform: uppercase;
}

.amaka-nav-section {
    margin-top: 24px;
}

.amaka-nav-item {
    position: relative;

    min-height: 42px;

    padding: 0 12px;

    margin-bottom: 4px;

    display: flex;
    align-items: center;

    gap: 11px;

    border: 1px solid transparent;
    border-radius: 10px;

    text-decoration: none;

    color: rgba(240, 253, 250, .74);

    font-size: 12px;
    font-weight: 600;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.amaka-nav-item:hover {
    background: rgba(255, 255, 255, .075);

    border-color: rgba(255, 255, 255, .06);

    color: #ffffff;

    transform: translateX(2px);
}

.amaka-nav-item.active {
    background: linear-gradient(
        135deg,
        rgba(94, 234, 212, .20),
        rgba(45, 212, 191, .11)
    );

    border-color: rgba(94, 234, 212, .15);

    color: #ffffff;

    font-weight: 800;

    box-shadow:
        inset 3px 0 0 #5eead4,
        0 8px 22px rgba(0, 0, 0, .08);
}

.amaka-nav-icon {
    width: 20px;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;

    color: #5eead4;

    font-size: 16px;

    transition: transform .18s ease;
}

.amaka-nav-item:hover .amaka-nav-icon,
.amaka-nav-item.active .amaka-nav-icon {
    color: #99f6e4;
}

.amaka-nav-item:hover .amaka-nav-icon {
    transform: scale(1.06);
}

/* =========================================================
   SIDEBAR BOTTOM / USER
========================================================= */

.amaka-sidebar-bottom {
    padding: 13px 12px 14px;

    border-top: 1px solid rgba(255, 255, 255, .08);

    background: rgba(0, 0, 0, .06);
}

.amaka-sidebar-company {
    padding: 10px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 10px;

    background: rgba(255, 255, 255, .06);
}

.amaka-sidebar-user {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 9px;
}

.amaka-sidebar-user-main {
    padding: 8px 9px;

    display: flex;
    align-items: center;

    gap: 10px;

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;

    background: rgba(255, 255, 255, .055);
}

.amaka-company-avatar {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid rgba(153, 246, 228, .18);
    border-radius: 9px;

    background: linear-gradient(135deg, #0f766e, #115e59);

    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);
}

.amaka-company-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.amaka-company-info strong {
    overflow: hidden;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.amaka-company-info span {
    margin-top: 3px;

    color: rgba(204, 251, 241, .52);

    font-size: 9px;
}

.amaka-sidebar-logout {
    width: 100%;
    min-height: 34px;

    padding: 0 10px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 9px;

    background: rgba(255, 255, 255, .04);

    color: rgba(240, 253, 250, .62);

    text-decoration: none;

    font-size: 10px;
    font-weight: 700;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.amaka-sidebar-logout:hover {
    border-color: rgba(254, 202, 202, .16);

    background: rgba(220, 38, 38, .13);

    color: #fecaca;
}

.amaka-sidebar-logout-icon {
    width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: rgba(255, 255, 255, .07);

    color: inherit;

    font-size: 12px;

    transition: background .15s ease;
}

.amaka-sidebar-logout:hover .amaka-sidebar-logout-icon {
    background: rgba(220, 38, 38, .16);
}

/* =========================================================
   CONTENT AREA
========================================================= */

.amaka-main-content {
    margin-left: 230px;

    min-height: 100vh;

    padding: 0;
}

.amaka-main-content .amaka-container {
    max-width: none;

    margin: 0;

    padding: 24px;
}

/* =========================================================
   FOOTER
========================================================= */

.amaka-footer {
    margin-left: 230px;

    padding: 18px 25px;

    display: flex;
    justify-content: space-between;

    border-top: 1px solid #e2e8f0;

    background: #ffffff;

    color: #64748b;

    font-size: 11px;
}

/* =========================================================
   MOBILE HEADER
========================================================= */

.amaka-mobile-header {
    display: none;
}

.amaka-sidebar-overlay {
    display: none;
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 900px) {

    .amaka-sidebar {
        width: 230px;

        transform: translateX(-100%);

        transition: transform .22s ease;

        box-shadow: 20px 0 50px rgba(15, 23, 42, .22);
    }

    body.amaka-menu-open .amaka-sidebar {
        transform: translateX(0);
    }

    .amaka-main-content,
    .amaka-footer {
        margin-left: 0;
    }

    .amaka-mobile-header {
        position: sticky;
        top: 0;

        min-height: 58px;

        padding: 0 16px;

        display: flex;
        align-items: center;

        gap: 12px;

        border-bottom: 1px solid #e2e8f0;

        background: rgba(255, 255, 255, .94);

        backdrop-filter: blur(12px);

        z-index: 900;
    }

    .amaka-mobile-header strong {
        color: #073f3c;

        font-size: 15px;
        font-weight: 900;

        letter-spacing: .8px;
    }

    .amaka-mobile-toggle {
        width: 36px;
        height: 36px;

        padding: 0;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 1px solid #dbe5e7;
        border-radius: 9px;

        background: #ffffff;

        color: #075e58;

        cursor: pointer;

        font-size: 18px;
    }

    .amaka-sidebar-overlay {
        position: fixed;
        inset: 0;

        display: block;

        visibility: hidden;

        background: rgba(15, 23, 42, .38);

        opacity: 0;

        transition:
            opacity .2s ease,
            visibility .2s ease;

        z-index: 950;
    }

    body.amaka-menu-open .amaka-sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .amaka-main-content .amaka-container {
        padding: 20px;
    }
}

@media (max-width: 600px) {

    .amaka-sidebar {
        width: min(84vw, 280px);
    }

    .amaka-main-content .amaka-container {
        padding: 14px;
    }

    .amaka-footer {
        padding: 14px 16px;

        flex-direction: column;

        gap: 5px;
    }
}
