body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}

/* TOPBAR */
.topbar {
    background: #2d6d7a;
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo {
    width: 45px;
    margin-right: 10px;
}

.sys-name {
    font-size: 24px;
    font-weight: bold;
    color: #ffe000;
}

.top-links a {
    color: #ffffff;
    margin-left: 10px;
    font-size: 14px;
    text-decoration: none;
}
.top-links{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-right: 10px;
}
.menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    display: none; /* hidden by default, shown on mobile only */
}
.md-hidden{}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #11222c;
    color: white;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -260px; /* hidden on small screens */
    transition: 0.3s;
    padding-top: 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar::-webkit-scrollbar {
    display: none;
}
.sidebar-header {
    position: absolute;
    top: 0;
    background: #14323f;
    width: 100%;
    padding: 0;
    text-align: center;
}

.close-btn {
    background: red;
    border: none;
    color: white;
    font-size: 18px;
    float: right;
}

.side-menu {
    list-style: none;
    padding: 0;
    margin-top: 70px;
}

.side-menu li a {
    padding: 15px 20px;
    cursor: pointer;
    width: 100%;
    border-bottom: 1px solid #1e3646;
}

.side-menu li a:hover {
    background: #1f4255;
}

/* MAIN CONTENT */
.content {
    margin-left: 0;
    padding: 20px;
    transition: margin-left 0.3s;
}

.dashboard{
    width: 100%;
}
.dashboard h2 {
    font-size: 28px;
    color: #2d6d7a;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    background: #dff3f9;
}

/* RESPONSIVE */
.side-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.side-menu li i {
    font-size: 18px;
    color: #ffd400;
}

@media (min-width: 768px) {

    /* Sidebar stays open permanently */
    .sidebar {
        left: 0 !important;   /* always visible */
    }

    /* Content shifts to the right because menu is fixed */
    .content,.topbar {
        margin-left: 260px;
    }


    /* Hide hamburger icon on large screens */
    .menu-toggle {
        display: none !important;
    }
    .close-btn{
        display: none;
    }
}

/* SMALL SCREENS <768px */
@media (max-width: 767px) {
    .md-hidden{ display: none}

    /* Show the hamburger icon */
    .menu-toggle {
        display: block;
    }

    /* Sidebar is hidden until toggled by hamburger */
    .sidebar {
        left: -260px;
    }

    /* Content returns to full width */
    .content {
        margin-left: 0;
        padding: 10px;
    }
}

.notification-link{
    position:relative;
    display:inline-block;
}

.notification-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    background:#e3342f;
    color:#ffffff;
    font-size:11px;
    font-weight:600;
    padding:2px 6px;
    border-radius:999px;
    min-width:18px;
    text-align:center;
    line-height:1;
}