
@import "https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css";
.sidebar {
    position: fixed;
    top: 16px; /* height of your navbar */
    left: 0;
    width: 250px;
    height: calc(100vh - 16px);
    background: #343a40;
    padding-top: 60px;
    padding-bottom: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s ease;
}


.sidebar a {
    display: block;
    color: #fff;   
    padding: 14px 15px;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar a.active {
    background: #007bff;
}

.content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px;
}

.navbar-brand {
    font-weight: bold;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-card.admin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card.user {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card h3 {
    margin: 0;
    font-size: 2.5rem;
}

.stats-card p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

    .content {
        margin-left: 0;
    }
}

.menu-item {
    color: white;
    padding: 15px 20px;
    cursor: pointer;
}

.menu-item .arrow {
    float: right;
}

.submenu {
    display: none;
    background-color: #495057;
    padding-left: 20px;
}

.submenu-item {

    color: #fff;
    cursor: pointer;
}

/* .submenu-item a:hover {
    background-color: #6c757d;
} */

/* Show submenu when active */
.menu-item.active .submenu {
    display: block;
}

.menu-item.active .arrow {
    transform: rotate(180deg);
}

/* rest cod */
.main-content {
    margin-left: var(--sidebar-width);
    transition: all 0.3s ease;
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: 70px;
}

.top-navbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: #333;
    transform: scale(1.1);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-card.success::before {
    background: var(--success-gradient);
}

.stat-card.warning::before {
    background: var(--warning-gradient);
}

.stat-card.danger::before {
    background: var(--danger-gradient);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: var(--primary-gradient);
    margin-bottom: 1rem;
}

.stat-card.success .stat-icon {
    background: var(--success-gradient);
}

.stat-card.warning .stat-icon {
    background: var(--warning-gradient);
}

.stat-card.danger .stat-icon {
    background: var(--danger-gradient);
}

.chart-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 400px;
    margin-bottom: 2rem;
}
/* 
.table-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    transition: all 0.3s ease;
} */

/* .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
} */

.notification-dropdown {
    min-width: 300px;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.progress-custom {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar-custom {
    border-radius: 10px;
    background: var(--success-gradient);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .main-content {
        margin-left: 0;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* more css desing */
.settings-content {
    margin-top: 62px;
    margin-left: 62px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    /* min-height: 600px; */
}

.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: #495057;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
}

.settings-section {
    padding: 2rem;
}

.section-title {
    color: #495057;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

/* .form-switch .form-check-input {
    width: 3rem;
    height: 1.5rem;
} */

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e9ecef;
}

.notification-item {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.notification-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
}
/* .form-check-input {
    border: 1px solid grey !important;
    width: 18px !important;
     height: 18px !important;
    cursor: pointer;
} */

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}   

.dataTables_filter{
        margin-bottom: 10px !important;
}
#export-selected{
    margin-top: 20px !important;
}
.mtp{
margin-top:62px;
}
/* blog css start*/

  :root {
        --primary-color: #4361ee;
        --secondary-color: #3a0ca3;
        --success-color: #2ecc71;
        --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        --border-radius: 8px;
    }

    .header {
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        color: white;
        padding: 1.5rem 0;
        box-shadow: var(--box-shadow);
        margin-bottom: 2rem;
    }

    .card {
        /* border: none; */
        border-radius: var(--border-radius);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s ease;
    }

    .card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .card-header {
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        color: white;
        border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
        padding: 1.2rem 1.5rem;
        font-weight: 600;
    }

     .card-header-test {
        background: rgba(203, 203, 203, 0.792);
        color: rgb(27, 27, 27);
        border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
        padding: 1.2rem 1.5rem;
        font-weight: 400;
    }


    .section-title {
        position: relative;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
    }

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--success-color);
        border-radius: 2px;
    }

    .form-label {
        font-weight: 500;
        margin-bottom: 0.4rem;
        color: #495057;
    }

    .required:after {
        content: " *";
        color: #dc3545;
    }

    .btn-primary {
        background: linear-gradient(to right, var(--secondary-color), #2a2a72);
        border: none;
        padding: 0.5rem 1.5rem;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-primary:hover {
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .form-control,
    .form-select {
        border-radius: 6px;
        padding: 0.5rem 0.75rem;
        border: 1px solid #ced4da;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
    }

    .info-badge {
        background-color: #e9ecef;
        color: #495057;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius);
        font-size: 0.85rem;
        margin-top: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .info-badge i {
        color: var(--primary-color);
        margin-right: 0.5rem;
    }

    .form-section {
        background-color: #f8f9ff;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        margin-bottom: 1.5rem;
        border-left: 4px solid var(--primary-color);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .image-preview {
        width: 100%;
        height: 150px;
        background-color: #f8f9fa;
        border: 2px dashed #ced4da;
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .image-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .image-preview-placeholder {
        color: #6c757d;
        text-align: center;
        padding: 1rem;
    }

    .image-preview-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        display: block;
    }

    .two-column-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    @media (max-width: 992px) {
        .two-column-layout {
            grid-template-columns: 1fr;
        }
    }

    .form-group-icon {
        position: relative;
    }

    .form-group-icon i {
        position: absolute;
        left: 12px;
        top: 38px;
        color: #6c757d;
    }

    .form-group-icon .form-control {
        padding-left: 35px;
    }

    .status-badge {
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .status-published {
  margin-left: 45px;
        background-color: #d1e7dd;
        color: #0a3622;
    }

    .status-draft {
        margin-left: 25px;
        background-color: #f8d7da;
        color: #58151c;
    }

   
/* blog css end */


/* for select box opening issue */
/* Smooth, consistent dropdown look *//* Custom styled select box */
select.form-control.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;

    /* Downward arrow SVG as background image */
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5H7z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;

    padding-right: 2rem; /* Space for arrow */
    border-radius: 6px;
}

/* Optional: Hover and focus style */
select.form-control.custom-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


/* end of select box opeining issue */

#export-selected{
  
    margin-left: 194px;
     position: relative; 
     z-index: 10;
}
/* .export-selected{
        margin-top: 20px;
    margin-left: 199px;
    position: relative;
    z-index: 10;
} */

/* tsting code  */

  .menu-container {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            max-width: 400px;
        }

        .menu-item {
            position: relative;
            border-bottom: 1px solid #e0e0e0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .menu-item:last-child {
            border-bottom: none;
        }

        .menu-item:hover {
            background-color: #268ff8;
        }

        .menu-item.active {
            background-color: #013153;
        }

        .menu-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 20px;
            font-weight: 500;
            color: #333;
        }

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

        .custom-page-icon {
            color: #ffffff;
            font-size: 16px;
        }

        .arrow {
            font-size: 12px;
            color: #ffffff;
            transition: transform 0.3s ease;
        }

        .menu-item.active .arrow {
            transform: rotate(180deg);
        }

        .submenu {
            max-height: 0;
            overflow: hidden;
            background-color: #343a40d9;
            transition: max-height 0.3s ease;
        }

        .submenu.active {
            max-height: 1000px;
        }

        .submenu-item {
            position: relative;
            border-top: 1px solid #e0e0e0;
        }

        .submenu-item:hover,
        .submenu-item.active {
            color:#333;
            background-color: #e8f5e8;
        }
        .submenu-item:hover a{
            color: #343a40;
        }
        /* .submenu-item:hover .submenu-item a{
           color: #343a40;
        } */
        .submenu-item a,
        .submenu-header {
            display: flex;
            align-items: center;
            padding: 7px 2px 6px 2px;
            text-decoration: none;
            color: #ffffff;
            font-size: 14px;
            gap: 10px;
            transition: all 0.3s ease;
        }
        
     
        .b2b:hover{
            background-color: #e8f5e8 !important;
        }






        .submenu-header {
            cursor: pointer;
            justify-content: space-between;
            font-weight: 500;
        }
        /* .submenu-item a:hover {
               background-color: white !important;
    color: #343a40d9 !important;
           font-size: 14px;
        } */
        .sub-submenu {
            max-height: 0;
            overflow: hidden;
            background-color: #f0f0f0;
            transition: max-height 0.3s ease;
        }

        .sub-submenu.active {
            max-height: 500px;
        }

        .sub-submenu-item {
               color: #ffffff !important;
            background-color: #333 !important;
            border-top: 1px solid #ddd;
        }

        .sub-submenu-item:hover {
            color:#333 !important;
            background-color:#ffffff !important;
        }

        .sub-submenu-item a {
              color: #ffffff !important;
            padding: 10px 4px 2px 13px;
            font-size: 13px;
            
        }

             .sub-submenu-item a:hover {
              color: #333 !important;
          
        }
       

        .submenu-arrow {
            font-size: 10px;
            color: #ffffff !important;
            transition: transform 0.3s ease;
        }

        .submenu-item.active .submenu-arrow {
            transform: rotate(180deg);
        }

        /* edn testing code  */