:root {
    --bg: #f7f5fc;
    --card: #ffffff;
    --text: #252238;
    --muted: #212025;
    --line: #ebe7f3;
    --primary: #7c4dff;
    --primary-light: #f0eaff;
    --pink: #ec4899;
    --green: #16a66a;
    --red: #e34d59;
    --dark: #181426;
    --sidebar: #19152a;
    --shadow: 0 10px 30px rgba(72, 48, 120, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}
.value-positive {
color: #0cdb02;
}
.value-negative {
color: #fe0000;
}
a {
    text-decoration: none;
    color: inherit;
}

tbody{
        font-weight: 600;
}
.footer-fix{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}
.login{
    width: 100%;
}
.app {
    display: flex;
    min-height: 100vh;
}
.m-top-common{
    margin-top: 25px;
}
/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--sidebar);
    color: #d9deea;
    padding: 24px 16px;
    position: fixed;
    inset: 0 auto 0 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    padding: 0 12px 28px;
}

.brand span {
    width: 35px;
    height: 35px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9b6cff, #ec4899);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(155, 108, 255, 0.35);
}

.nav-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #817a96;
    padding: 15px 12px 8px;
}

.nav a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    margin: 3px 0;
    font-size: 14px;
    transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    background: linear-gradient(
        90deg,
        rgba(124, 77, 255, 0.22),
        rgba(236, 72, 153, 0.12)
    );
    color: #fff;
}

/* Main */
.main {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* Topbar */
.topbar {
    height: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search {
    width: 340px;
    background: #faf9fd;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    gap: 9px;
    color: var(--muted);
}

.search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eee8ff, #fce7f3);
    color: #7048d8;
    display: grid;
    place-items: center;
    font-weight: 700;
}

/* Content */
.content {
    padding: 30px;
    max-width: 1500px;
    margin: auto;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-head h1 {
    font-size: 26px;
    margin: 0;
}

.sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

/* Grid */
.grid {
    display: grid;
    gap: 18px;
}

.kpis {
    grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(72, 48, 120, 0.11);
}

.kpi-label {
    font-size: 13px;
    color: var(--muted);
}

.kpi-value {
    font-size: 25px;
    font-weight: 800;
    margin: 8px 0;
}

.up {
    color: var(--green);
}

.down {
    color: var(--red);
}

/* Dashboard */
.dashboard-grid {
    grid-template-columns: 2fr 1fr;
    margin-top: 18px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 17px;
    margin: 0;
}

.chart {
    height: 310px;
    position: relative;
    overflow: hidden;
}

.chart svg {
    width: 100%;
    height: 100%;
}

/* Table */
.table-card {
    margin-top: 18px;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    background: #faf9fd;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.stock {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary-light);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
}

/* Badges */
.badge {
    font-size: 11px;
    padding: 5px 8px;
    border-radius: 20px;
    background: #edf9f4;
    color: var(--green);
}

.badge.red {
    background: #fff0f1;
    color: var(--red);
}

/* News */
.news {
    display: grid;
}

.news-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.news-item:last-child {
    border: 0;
}

.news-item h3 {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 6px;
}

.news-item p {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* Buttons */
.btn {
    border: 0;
    border-radius: 2px;
    padding: 7px 9px;
    background: linear-gradient(135deg, #7c4dff, #9b6cff);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(124, 77, 255, 0.25);
}

.btn.secondary {
    background: var(--primary-light);
    color: #6542c7;
}
.buy-now-btn{
    font-size: 12px;
    position: relative;
    top: 10px;
}
/* Form */
.form-card {
    max-width: 470px;
    margin: 60px auto;
}

.form-card h1 {
    margin-bottom: 8px;
}

.field {
    margin: 16px 0;
}

.field label {
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 7px;
}

.field input,
.field select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
}

.field input:focus,
.field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.08);
}

/* Empty */
.empty {
    padding: 45px;
    text-align: center;
    color: var(--muted);
}

/* Mobile */
.mobile-menu {
    display: none;
}

.footer {
    padding: 25px 30px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Tablet */
@media (max-width: 1050px) {
    .kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .search {
        width: 260px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-100%);
        transition: 0.2s;
        z-index: 30;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .topbar {
        padding: 0 16px;
    }

    .search {
        display: none;
    }

    .mobile-menu {
        display: block;
        border: 0;
        background: none;
        font-size: 22px;
        cursor: pointer;
    }

    .content {
        padding: 20px 15px;
    }

    .kpis {
        grid-template-columns: 1fr;
    }

    .page-head {
        align-items: flex-start;
        gap: 12px;
    }

    .page-head h1 {
        font-size: 22px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 16px;
    }

    .chart {
        height: 240px;
    }
}