* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f4f6fb;
    /* color: #333; */
    /* display: flex; */
    /* min-height: 100vh; */
    overflow: hidden;
}

.app-layout {

    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: #1d243d;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    flex-shrink: 0;
    /* padding: 25px 20px;
    transition: all 0.3s ease; */
}

.sidebar-header {

    padding: 25px 20px;

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

    flex-shrink: 0;
}

.sidebar-nav {

    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 12px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.2s ease;
    font-size: 15px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: #28304e;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a,


.submenu-toggle {
    width: 100%;
    border: none;
    background: none;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

.sidebar-menu a:hover,

.sidebar-footer {

    padding: 18px 20px;

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

    font-size: 13px;

    color: rgba(255,255,255,0.7);

    flex-shrink: 0;
}

.submenu-toggle:hover,
.sidebar-menu a.active,
.submenu-toggle.open {
    background: #28304e;
}

.submenu-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 6px;
    display: none;
}

.submenu.show {
    display: block;
}

.submenu a {
    padding: 10px 14px;
    font-size: 14px;
}

.arrow {
    transition: transform 0.2s ease;
}

.submenu-toggle.open .arrow {
    transform: rotate(180deg);
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {

    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.header {
    height: 75px;
    min-height: 75px;
    background: #28304e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    flex-shrink: 0;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative; */
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
}

.user-dropdown {
    position: relative;
}

.user-button {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;

    padding: 10px 16px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 10px;

    cursor: pointer;

    font-size: 14px;

    transition: background 0.2s ease;
}

.user-button:hover {
    background: rgba(255,255,255,0.15);
}

.dropdown-menu {

    position: absolute;

    top: 55px;
    right: 0;

    background: #fff;

    min-width: 180px;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 4px 16px rgba(0,0,0,0.12);

    display: none;

    z-index: 999;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    text-decoration: none;

    color: #333;

    font-size: 14px;

    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f4f6fb;
}

.dashboard {
    padding: 30px;
}

.dashboard-title {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    color: #28304e;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
}

.card .icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(40, 48, 78, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
    color: #28304e;
}

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
    font-weight: 500;
}

.card .value {
    font-size: 30px;
    font-weight: 700;
    color: #28304e;
}

.card .subtext {
    margin-top: 10px;
    font-size: 14px;
    color: #888;
}

.card table td.col-right{
    text-align: right;
    padding-left: 3px;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 900px) {
    body {
    flex-direction: column;
    }

    .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    z-index: 999;
    }

    .sidebar.active {
    left: 0;
    }

    .main-wrapper {
    width: 100%;
    }

    .mobile-menu {
    display: block;
    }

    .header {
    padding: 0 20px;
    }

    .dashboard {
    padding: 20px;
    }
}