/* Header action styles */
.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.header-action i {
    font-size: 20px;
    color: inherit;
}

/* Avatar styles for both desktop and mobile */
.avatar2 {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid #fff !important;
    transition: all 0.3s ease;
    display: block !important;
}

.header-action .avatar2:hover {
    transform: scale(1.1);
    border-color: #007bff;
}

/* Mobile navbar header actions */
.navbar-header-actions {
    display: none;
}

@media (max-width: 991px) {

    /* Hide desktop header actions */
    .header.header-6 .header-action {
        display: none !important;
    }

    /* Show mobile header actions in sidebar */
    .navbar-header-actions {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        border-bottom: 1px solid #e0e0e0;
        background: #f8f9fa;
    }

    .navbar-header-actions a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-header-actions a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar-header-actions i {
        font-size: 20px;
        color: #2F80ED;
    }

    .navbar-header-actions .avatar2 {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
        border: 2px solid #2F80ED !important;
    }
}

@media (max-width: 767px) {
    .navbar-header-actions {
        gap: 15px;
        padding: 15px;
    }

    .navbar-header-actions a {
        width: 40px;
        height: 40px;
    }

    .navbar-header-actions i {
        font-size: 18px;
    }

    .navbar-header-actions .avatar2 {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        max-width: 36px !important;
        max-height: 36px !important;
    }
}