body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #232323;
    color: #fff;
}

.header-bar {
    display: flex;
    align-items: center;
    background: #17505a;
    height: 65px;
    padding: 0 24px;
    justify-content: space-between;
}

.logo img {
    height: 40px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification {
    font-size: 22px;
    margin-right: 14px;
    cursor: pointer;
}
.avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.action-bar {
    display: flex;
    justify-content: center;
    background: #353535;
    padding: 0;
    position: relative;
}

.action-menu {
    display: flex;
    align-items: center;
    padding: 0 30px;
    margin: 0;
    gap: 16px;
    list-style: none;
    min-height: 66px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
    background: none;
    border: none;
}

.action-link.active, .action-link:hover {
    background: #17505a;
    color: #fff;
}

.action-icon {
    width: 21px;
    height: 21px;
    display: block;
    filter: brightness(1000%) invert(0.96);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 8px;
}

.hamburger span {
    display: block;
    width: 27px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 1.5px;
    transition: 0.3s;
}

/* Sidebar and content layout */
.main-content {
    display: flex;
    margin-top: 20px;
    justify-content: center;
}

.sidebar {
    width: 160px;
    background: #353535;
    border-radius: 16px 0 0 16px;
    margin-right: 0;
    padding: 36px 0 0 0;
    min-height: 540px;
    position: relative;
}

.sidebar-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.tab-item {
    margin-bottom: 6px;
}
.tab-item a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}
.tab-item.active a, .tab-item a:hover {
    background: #fff;
    color: #232323;
}

.sidebar-dropdown {
    display: none;
    width: 100%;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
}

/* Content area */
.content-area {
    background: #444;
    border-radius: 18px 18px 18px 18px;
    padding: 32px 28px 28px 28px;
    min-width: 640px;
    min-height: 540px;
    margin-left: 0;
    flex: 1;
    box-shadow: 0 0 12px 1px #191919;
}

h1 {
    margin-top: 0;
    font-size: 2em;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 18px;
}

.dashboard-card {
    background: #222;
    margin-bottom: 32px;
    border-radius: 10px;
    box-shadow: 0 2px 8px #15151560;
    padding-bottom: 2px;
}

.card-header {
    background: #17505a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    background: #222;
    color: #fff;
    margin: 0;
}
.dashboard-table th, .dashboard-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #333;
    text-align: left;
    font-size: 15px;
}
.dashboard-table th {
    background: #1a424c;
    color: #fff;
    font-size: 1em;
}
.dashboard-table tr:last-child td {
    border-bottom: none;
}
.dashboard-table a {
    color: #249cd2;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1100px) {
    .content-area {
        min-width: 360px;
        padding: 18px 8px 18px 8px;
    }
    .sidebar {
        width: 120px;
        padding: 16px 0 0 0;
    }
}

@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        align-items: stretch;
    }
    .sidebar {
        border-radius: 16px 16px 0 0;
        width: 100%;
        min-height: unset;
        margin-right: 0;
        margin-bottom: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .content-area {
        border-radius: 0 0 18px 18px;
        margin-left: 0;
        min-width: unset;
    }
}

@media (max-width: 700px) {
    .action-bar {
        justify-content: flex-start;
    }
    .action-menu {
        flex-direction: column;
        position: absolute;
        top: 65px;
        left: 0;
        width: 100%;
        background: #353535;
        display: none;
        z-index: 99;
        min-height: unset;
        padding: 0;
        box-shadow: 0 10px 20px #1116;
    }
    .action-menu.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .main-content {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .sidebar-tabs {
        display: none;
    }
    .sidebar-dropdown {
        display: block;
    }
    .content-area {
        padding: 10px 2vw;
        min-width: unset;
    }
}

/* Hide scrollbar for action menu */
.action-menu {
    scrollbar-width: none;
}
.action-menu::-webkit-scrollbar {
    display: none;
}
/* ...rest of your CSS... */

/* Add this or update .main-content as follows: */
.main-content {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    padding-left: 75px;
    padding-right: 75px;
}

/* Responsive adjustment for small screens */
@media (max-width: 700px) {
    .main-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}
@media (max-width: 700px) {
    .action-bar {
        justify-content: center; /* <-- Center items horizontally */
        position: relative;
    }
    .hamburger {
        margin: 0 auto;          /* <-- Center the hamburger button itself */
    }
}
@media (max-width: 700px) {
    .action-bar {
        flex-direction: column;
        align-items: center;
    }
    .hamburger {
        margin: 12px 0;
    }
    .action-menu {
        top: 65px; /* adjust if needed based on hamburger height */
    }
}
/* Notification bell styles */
.notification {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 14px;
    cursor: pointer;
}

.notification-bell {
    width: 22px;
    height: 22px;
    filter: brightness(1000%) invert(0.96); /* ensures white appearance */
    display: block;
}

/* Red dot indicator */
.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 9px;
    height: 9px;
    background: #e53935;
    border-radius: 50%;
    border: 2px solid #17505a; /* match header background */
    display: block;
    z-index: 2;
}
.sidebar-label {
    color: #aaa;
    font-size: 1.1em;
    padding: 18px 0 0 28px;
    letter-spacing: 1px;
}
/* Make Dashboard content area wider when no sidebar is present */
.dashboard-no-sidebar {
    justify-content: center;
    padding-left: 50px;
    padding-right: 50px;
}

.dashboard-no-sidebar .content-area {
    border-radius: 18px;
    margin-left: 0;
    min-width: 640px;
    max-width: 950px;
    width: 100%;
}