
/* =========================================================
   ANANT8 PORTAL THEME
   ========================================================= */
:root {
    --brand-primary: #4f46e5;
    --brand-secondary: #94a3b8;
    --brand-primary-hover: color-mix(in srgb, var(--brand-primary), black 14%);
    --a8-primary: var(--brand-primary);
    --a8-primary-hover: var(--brand-primary-hover);
    --a8-sidebar: #111827;
    --a8-sidebar-hover: #1f2937;
    --a8-sidebar-active: #312e81;
    --a8-background: #f8fafc;
    --a8-card: #ffffff;
    --a8-text: #111827;
    --a8-text-secondary: #64748b;
    --a8-text-muted: #94a3b8;
    --a8-border: #e2e8f0;
    --a8-success: #16a34a;
    --a8-warning: #d97706;
    --a8-danger: #dc2626;
    --a8-sidebar-width: 250px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--a8-background);
    color: var(--a8-text);
}


/* =========================================================
   APP
   ========================================================= */

.anant8-app {
    min-height: 100vh;
    display: flex;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.anant8-sidebar {
    width: var(--a8-sidebar-width);
    min-height: 100vh;
    background: var(--a8-sidebar);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
}


/* Brand */

.anant8-brand {
    height: 76px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anant8-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--a8-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 11px;
}

.anant8-logo-image {
    object-fit: contain;
    background: transparent;
    border: 1px solid var(--brand-secondary);
    padding: 2px;
}

.anant8-brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.anant8-brand-subtitle {
    font-size: 11px;
    color: var(--brand-secondary);
    margin-top: 1px;
}


/* Sidebar Sections */

.anant8-sidebar-section {
    padding: 22px 20px 8px;
}

    .anant8-sidebar-section span {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: #6b7280;
    }


/* Navigation */

.anant8-nav {
    padding: 0 12px;
}

.anant8-nav-item {
    height: 43px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    margin-bottom: 3px;
    border-radius: 8px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

    .anant8-nav-item:hover {
        background: var(--a8-sidebar-hover);
        color: #ffffff;
    }

    .anant8-nav-item.active {
        background: var(--a8-sidebar-active);
        color: #ffffff;
    }

.anant8-nav-icon {
    width: 28px;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
}


/* Sidebar Bottom */

.anant8-sidebar-bottom {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.anant8-user-card {
    display: flex;
    align-items: center;
    padding: 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
}

.anant8-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--a8-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.anant8-user-info {
    min-width: 0;
    flex: 1;
    margin-left: 9px;
}

.anant8-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.anant8-user-role {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.anant8-user-menu {
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    padding: 4px;
    cursor: pointer;
}


/* =========================================================
   MAIN
   ========================================================= */

.anant8-main {
    margin-left: var(--a8-sidebar-width);
    width: calc(100% - var(--a8-sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================================================
   TOPBAR
   ========================================================= */

.anant8-topbar {
    height: 76px;
    background: #ffffff;
    border-bottom: 1px solid var(--a8-border);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.anant8-topbar-left {
    display: flex;
    align-items: center;
}

.anant8-mobile-menu {
    display: none;
    border: none;
    background: transparent;
    font-size: 22px;
    margin-right: 12px;
}

.anant8-page-title {
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.3px;
}

.anant8-breadcrumb {
    color: var(--a8-text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.anant8-topbar-right {
    display: flex;
    align-items: center;
}

.anant8-icon-button {
    width: 38px;
    height: 38px;
    position: relative;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--a8-text-secondary);
    font-size: 19px;
    cursor: pointer;
}

    .anant8-icon-button:hover {
        background: #f1f5f9;
    }

.anant8-notification-dot {
    width: 6px;
    height: 6px;
    background: var(--a8-danger);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.anant8-topbar-divider {
    width: 1px;
    height: 30px;
    background: var(--a8-border);
    margin: 0 17px;
}

.anant8-topbar-user {
    display: flex;
    align-items: center;
}

.anant8-avatar-small {
    width: 34px;
    height: 34px;
}

.anant8-topbar-user-info {
    margin-left: 9px;
    font-size: 13px;
    font-weight: 600;
}

    .anant8-topbar-user-info span {
        display: block;
        font-size: 11px;
        font-weight: 400;
        color: var(--a8-text-muted);
        margin-top: 1px;
    }


/* =========================================================
   CONTENT
   ========================================================= */

.anant8-content {
    flex: 1;
    padding: 30px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.anant8-footer {
    padding: 18px 30px;
    border-top: 1px solid var(--a8-border);
    background: #ffffff;
    color: var(--a8-text-muted);
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .anant8-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

        .anant8-sidebar.open {
            transform: translateX(0);
        }

    .anant8-main {
        margin-left: 0;
        width: 100%;
    }

    .anant8-mobile-menu {
        display: block;
    }

    .anant8-content {
        padding: 20px;
    }

    .anant8-topbar {
        padding: 0 20px;
    }
}


@media (max-width: 600px) {

    .anant8-topbar-user-info {
        display: none;
    }

    .anant8-topbar-divider {
        display: none;
    }

    .anant8-footer {
        padding: 15px 20px;
    }

        .anant8-footer span:last-child {
            display: none;
        }
}

