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

html,
body {
    height: 100%;
    font-family: "Segoe UI", sans-serif;
    background: #f3f4f6;
}

.admin-header {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 999;
    padding: 0 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
}

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

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:  #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.user-name {
    font-weight: 600;
}

.logout-btn {
    border: none;
    border-radius: 10px;
    background: #fee2e2;
    color: #ef4444;
    padding: 10px 20px;
    font-weight: 600;
    transition: .3s;
}

.logout-btn:hover {
    transform: translateY(-2px);
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #111827;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.menu-icon-lists {
    padding: 20px 10px;
}

.menu-icon-container {
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: .3s;
}

.menu-icon-container:hover {
    background: #1f2937;
}

.menu-icon-container.active {
    background:  #4f46e5;
}

.menu-icon-selected {
    display: none !important;
}

.menu-item-text {
    font-size: 15px;
    font-weight: 500;
}

.admin-layout {
    display: flex;
    background: #fff;
}

.admin-content {
    margin-left: 260px;
    margin-top: 70px;
    width: calc(100% - 260px);
    min-height: calc(100vh - 70px);
    padding: 30px;
}

.dashboard-card {
    border: none;
    border-radius: 18px;
    background: white;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
    transition: .3s;
}

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

.dashboard-card .card-body {
    padding: 30px;
}

.dashboard-number {
    font-size: 42px;
    font-weight: 700;
    color:  #4f46e5;
    /* color: #6b7280; */
}

.dashboard-title {
    color: #6b7280;
    font-size: 15px;
}

.chart-card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
}

.chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
}

.chart-card .card-body {
    padding: 25px;
}

.dataTables_wrapper .dataTables_scroll {
    margin-top: 60px !important;
}

.dataTables_wrapper {
    background: white;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0,0,0,.05);
}

table.dataTable thead th {
    background: #f9fafb;
    font-weight: 600;
}

table.dataTable tbody tr:hover {
    background: #f8fafc;
}

.edit-user,
.edit-plan {
    background: #dbeafe !important;
}

/* .delete-user, */
.delete-plan {
    background: #fee2e2 !important;
}

.add-new-user,
.add-new-plan {
    background:  #4f46e5 !important;
    border: none !important;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 12px;
}

.form-check-input:checked {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

#save-plan, #save-content {
    background: #4f46e5; 
    color: #fff; 
    font-weight: 600;
}

#report-user-table {
    text-align: center;
}

.dataTables_scrollBody {
    overflow: auto !important;
}

@media(max-width:991px){

    .admin-sidebar{
        width:220px;
    }

    .admin-header{
        left:220px;
    }

    .admin-content{
        margin-left:220px;
        width:calc(100% - 220px);
    }
}

@media(max-width:768px){

    .admin-sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .admin-header{
        position:relative;
        left:0;
        padding: 0 10px;
    }
    
    .header-title {
        font-size: 15px;
    }

    .admin-layout{
        flex-direction:column;
    }

    .admin-content{
        margin-left:0;
        width:100%;
        margin-top:0;
        padding:15px;
    }

    .menu-icon-container{
        justify-content:center;
    }
}