:root {
    --primary: #0b6b3a;
    --primary-dark: #08572f;
    --primary-soft: #e8f5ee;
    --accent: #2bb673;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --border: #e5e7eb;
    --bg: #f6f7f8;
    --card: #ffffff;
    --sidebar: #fbfbfb;
    --sidebar: #fff;
    --header-bg: #fff;
    --warning-soft: #fff4cc;
    --warning-text: #7a5a00;
    --blue-btn: #3b82f6;
}

* {
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.app-shell {
    height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.sidebar {
    width: 210px !important;
    background: var(--sidebar) !important;
    padding: 10px 12px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.03);
    scrollbar-width: thin;
    scrollbar-color: #c4c4c4 transparent;
}

    .sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #c4c4c4;
        border-radius: 4px;
    }

        .sidebar::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    margin: 0;
    color: #212529;
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1px;
}

.nav-section .nav-link {
    color: #687281;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
}

    .nav-section .nav-link i {
        font-size: 14px;
    }

    .nav-section .nav-link.active {
        background: var(--primary);
        color: #fff;
        box-shadow: 0 4px 12px rgba(11, 107, 58, 0.15);
    }
/* Default → black */
.SideBariconimg {
    filter: brightness(0);
}

/* Active → white */
.nav-link.active .SideBariconimg {
    filter: brightness(0) invert(1);
}

.content-wrap {
    flex: 1;
    min-width: 0;
    padding: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.mobile-topbar {
    display: none;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.topbar {
    height: 64px;
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 0;
    box-shadow: 3px 0 6px rgba(0, 0, 0, 0.03);
    flex-shrink: 0;
}


.search-box {
    max-width: 420px;
    width: 100%;
    position: relative;
}

    .search-box .form-control {
        padding-left: 34px;
        height: 38px;
        border-radius: 8px;
        border: none; /* remove border */
        background: #ffffff;
        font-size: 13px;
        /* add light shadow */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    }

        .search-box .form-control:focus {
            outline: none;
            box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
        }

    .search-box i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 13px;
    }

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    background: transparent;
    border: 0;
}

.iconimg {
    width: 100%;
    height: 100%;
}

.SideBariconimg {
    width: 10%;
    height: 10%;
}

.profile {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 28px;
    background-color: #f9fff92e;
}

@media (max-width: 1199.98px) {
    .saved-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768.98px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 14px;
        background: var(--header-bg);
        border-bottom: 1px solid #dfe3e8;
        margin-bottom: 0;
    }

    .topbar {
        padding: 12px 14px;
        height: auto;
        /*  flex-direction: column;*/
        align-items: stretch;
    }

    .top-actions {
        justify-content: flex-end;
    }

    .main-content {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
    }
}



